Software and Services, Portable Libraries  2019.Mar.01
A library for managing digital certificates
UpnDbUserPersonalRecord.hpp
1 /*
2 
3  BEGIN_COPYRIGHT
4 
5  Copyright (C) 2017 Douglas Mark Royer, All Rights Reserved.
6 
7  NOTICE:
8 
9  THIS SOURCE CODE BELONGS TO DOUGLAS MARK ROYER AN INDIVIDUAL.
10  THIS CODE IS PROPERTY OF THE COPYRIGHT HOLDER AND IS NOT TO
11  BE DIVULGED OR USED BY PARTIES WHO HAVE NOT RECEIVED WRITTEN
12  AUTHORIZATION FROM THE OWNER.
13 
14  THIS SOFTWARE AND MANUAL ARE BOTH PROTECTED BY UNITED STATES
15  COPYRIGHT LAW (TITLE 17 UNITED STATES CODE). UNAUTHORIZED REPRODUCTION
16  AND/OR SALE MAY RESULT IN IMPRISONMENT OF UP TO ONE YEAR AND FINES
17  OF UP TO $100,000 (17 USC 506). COPYRIGHT INFRINGERS MAY ALSO
18  BE SUBJECT TO CIVIL LIABILITY.
19 
20  THIS NOTICE AND THE ABOVE COPYRIGHT NOTICE MUST REMAIN IN ALL
21  COPIES AND ANY DERIVED WORK.
22 
23  ALL OF THIS CODE IS ORIGINAL WORK BY THE COPYRIGHT HOLDER.
24 
25  THIS DOCUMENT AND THE INFORMATION CONTAINED HEREIN IS
26  PROVIDED ON AN "AS IS" BASIS AND OWNER DISCLAIM ALL WARRANTIES,
27  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY
28  THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE
29  ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY
30  OR FITNESS FOR A PARTICULAR PURPOSE.
31 
32  END_INET_COPYRIGHT
33 
34 */
35 
36 #ifndef __DOUGLAS_MARK_ROYER_LIBRARY_UPN_USERPERSONALRECORD_H__
37 #define __DOUGLAS_MARK_ROYER_LIBRARY_UPN_USERPERSONALRECORD_H__
38 
39 #include <SaS/Common/osver.h>
40 
41 #ifndef EXPORT_UPN
42 #ifdef BUILDING_SAS_UPNDB_LIBRARY
43 #define EXPORT_UPN EXPORT_OUT
44 #else
45 #define EXPORT_UPN EXPORT_IN
46 #endif
47 #endif
48 
49 #ifdef BUILDING_SAS_UPNDB_LIBRARY
50 #include "UpnDbRecord.hpp"
51 #include "UpnDbResourceRecord.hpp"
52 #include "UpnDbRealmRecord.hpp"
53 #include "UpnDbCertRecord.hpp"
54 #else
55 #include <SaS/UpnDb/UpnDbRecord.hpp>
56 #include <SaS/UpnDb/UpnDbResourceRecord.hpp>
57 #include <SaS/UpnDb/UpnDbRealmRecord.hpp>
58 #include <SaS/UpnDb/UpnDbCertRecord.hpp>
59 #endif
60 
61 namespace SoftwareAndServices
62 {
63  namespace Library
64  {
65  namespace UPN
66  {
67 
73  : public UpnDbRecord
74  {
75 
76  public:
77 
82 
86  virtual ~UpnDbUserPersonalRecord();
87 
95  bool Update(UpnDbAuthHandle_t Auth) const;
96 
104  bool Add(UpnDbAuthHandle_t Auth);
105 
113  bool Remove(UpnDbAuthHandle_t Auth);
114 
118  uint8_t * Photo;
119 
123  uint32_t PhotoLen;
124 
128  const char * MimeType;
129 
130  };
131 
132  }
133  }
134 }
135 #endif // __DOUGLAS_MARK_ROYER_LIBRARY_UPN_USERPERSONALRECORD_H__
#define EXPORT_OUT
Return the OS VERISON:
Definition: osver.h:492
Pure virtual base class for Upn DB records.
Definition: UpnDbRecord.hpp:66
Copyright Douglas Mark Royer DouglasRoyer@gmail.com.
Definition: Base.hpp:98
const char * MimeType
When non-NULL, the Mime Type for photo.
uint32_t PhotoLen
The number of octets that Photo points to.