00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef __OP_OTLRedeem__
00017 #define __OP_OTLRedeem__
00018
00019 #include "OP_API.h"
00020 #include <UT/UT_String.h>
00021 #include <UT/UT_PtrArray.h>
00022 #include <LM/LM_OTLEntitlement.h>
00023
00024 class OP_API OP_OTLRedeem
00025 {
00026 public:
00027 OP_OTLRedeem();
00028 ~OP_OTLRedeem();
00029
00030 const UT_String &getEmail() const;
00031 void setEmail(const char *email);
00032 const UT_String &getPassword() const;
00033 void setPassword(const char *password);
00034 const UT_String &getLicenseFile() const;
00035 void setLicenseFile(const char *licensefile);
00036
00037 int getNumEntitlements() const;
00038 const UT_String &getEntitlement(int index) const;
00039 void removeEntitlement(int index);
00040 bool getAvailableEntitlements();
00041
00042 bool redeemEntitlements();
00043
00044 const UT_String &getErrorMsg() const;
00045
00046 private:
00047 void clearEntitlements();
00048
00049 private:
00050 UT_String myEmail;
00051 UT_String myPassword;
00052 UT_String myLicenseFile;
00053 UT_PtrArray<LM_OTLEntitlement*> myEntitlements;
00054 };
00055
00056 #endif
00057