00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __OP_OTLEntitle__
00023 #define __OP_OTLEntitle__
00024
00025 #include "OP_API.h"
00026 #include <sys/time.h>
00027 #include <UT/UT_String.h>
00028 #include "OP_OTLLicenseType.h"
00029
00030 class OP_API OP_OTLEntitle
00031 {
00032 public:
00033 OP_OTLEntitle();
00034 ~OP_OTLEntitle();
00035
00036 const UT_String &getEmail() const;
00037 void setEmail(const char *email);
00038 const UT_String &getPassword() const;
00039 void setPassword(const char *password);
00040
00041 const UT_String &getLicenseName() const;
00042 void setLicenseName(const char *name);
00043 OP_OTLLicenseType getLicenseType() const;
00044 void setLicenseType(OP_OTLLicenseType licensetype);
00045 time_t getExpiry() const;
00046 void setExpiry(time_t expiry);
00047 const UT_String &getServerCode() const;
00048 void setServerCode(const char *name);
00049
00050 const UT_String &getOwnerEmail() const;
00051 void setOwnerEmail(const char *owneremail);
00052
00053 bool entitleOwner();
00054 const UT_String &getErrorMsg() const;
00055
00056 private:
00057 UT_String myEmail;
00058 UT_String myPassword;
00059 UT_String myLicenseName;
00060 UT_String myServerCode;
00061 OP_OTLLicenseType myLicenseType;
00062 time_t myExpiry;
00063 UT_String myOwnerEmail;
00064 };
00065
00066 #endif
00067