00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef __OP_OTLEncrypt__
00017 #define __OP_OTLEncrypt__
00018
00019 #include "OP_API.h"
00020 #include <UT/UT_RefArray.h>
00021 #include <UT/UT_StringArray.h>
00022 #include "OP_OTLLicenseType.h"
00023
00024 class OP_Node;
00025
00026 class OP_API OP_OTLEncrypt
00027 {
00028 public:
00029 OP_OTLEncrypt();
00030 ~OP_OTLEncrypt();
00031
00032
00033 const UT_String &getEmail() const;
00034 void setEmail(const char *email);
00035 const UT_String &getPassword() const;
00036 void setPassword(const char *password);
00037
00038
00039 bool getCompileBasic() const;
00040 void setCompileBasic(bool compile);
00041 bool getCompileVopnets() const;
00042 void setCompileVopnets(bool compile);
00043 bool getCompileChannels() const;
00044 void setCompileChannels(bool compile);
00045 bool getCompileNodeNames() const;
00046 void setCompileNodeNames(bool compile);
00047
00048
00049 int getNumLicenseNames() const;
00050 const UT_String &getLicenseName(int index) const;
00051 void removeLicenseName(int index);
00052 void addLicenseName(const char *name);
00053
00054
00055 bool encryptNode(OP_Node *node, const char *libpath);
00056
00057
00058
00059 const UT_String &getErrorMsg() const;
00060
00061 private:
00062
00063
00064
00065
00066
00067 bool getLicenseRequirementInfo( UT_String & info );
00068
00069 private:
00070 UT_String myEmail;
00071 UT_String myPassword;
00072 UT_StringArray myLicenseNames;
00073
00074 bool myCompileBasic;
00075 bool myCompileVopnets;
00076 bool myCompileChannels;
00077 bool myCompileNodeNames;
00078
00079 UT_String myErrors;
00080 };
00081
00082 #endif
00083