ExternalEncryption::ExternalEncryption(ODEControlContext &ctx) :
context(ctx)
{
- context.registerParametricMethod(this, "", (int)(ExternalEncryption::mount)(std::string));
- context.registerNonparametricMethod(this, "", (int)(ExternalEncryption::umount));
- context.registerParametricMethod(this, "", (int)(ExternalEncryption::encrypt)(std::string, unsigned int));
- context.registerParametricMethod(this, "", (int)(ExternalEncryption::decrypt)(std::string));
- context.registerNonparametricMethod(this, "", (int)(ExternalEncryption::isPasswordInitialized));
- context.registerParametricMethod(this, "", (int)(ExternalEncryption::initPassword)(std::string));
- context.registerParametricMethod(this, "", (int)(ExternalEncryption::cleanPassword)(std::string));
- context.registerParametricMethod(this, "", (int)(ExternalEncryption::changePassword)(std::string, std::string));
- context.registerParametricMethod(this, "", (int)(ExternalEncryption::verifyPassword)(std::string));
- context.registerNonparametricMethod(this, "", (int)(ExternalEncryption::getState));
- context.registerNonparametricMethod(this, "", (unsigned int)(ExternalEncryption::getSupportedOptions));
+ context.expose(this, "", (int)(ExternalEncryption::mount)(std::string));
+ context.expose(this, "", (int)(ExternalEncryption::umount)());
+ context.expose(this, "", (int)(ExternalEncryption::encrypt)(std::string, unsigned int));
+ context.expose(this, "", (int)(ExternalEncryption::decrypt)(std::string));
+ context.expose(this, "", (int)(ExternalEncryption::isPasswordInitialized)());
+ context.expose(this, "", (int)(ExternalEncryption::initPassword)(std::string));
+ context.expose(this, "", (int)(ExternalEncryption::cleanPassword)(std::string));
+ context.expose(this, "", (int)(ExternalEncryption::changePassword)(std::string, std::string));
+ context.expose(this, "", (int)(ExternalEncryption::verifyPassword)(std::string));
+ context.expose(this, "", (int)(ExternalEncryption::getState)());
+ context.expose(this, "", (unsigned int)(ExternalEncryption::getSupportedOptions)());
externalAddEventReceiver();
}
InternalEncryption::InternalEncryption(ODEControlContext& ctx) :
context(ctx)
{
- context.registerParametricMethod(this, "", (int)(InternalEncryption::mount)(std::string));
- context.registerNonparametricMethod(this, "", (int)(InternalEncryption::umount));
- context.registerParametricMethod(this, "", (int)(InternalEncryption::encrypt)(std::string, unsigned int));
- context.registerParametricMethod(this, "", (int)(InternalEncryption::decrypt)(std::string));
- context.registerNonparametricMethod(this, "", (int)(InternalEncryption::isPasswordInitialized));
- context.registerParametricMethod(this, "", (int)(InternalEncryption::initPassword)(std::string));
- context.registerParametricMethod(this, "", (int)(InternalEncryption::cleanPassword)(std::string));
- context.registerParametricMethod(this, "", (int)(InternalEncryption::changePassword)(std::string, std::string));
- context.registerParametricMethod(this, "", (int)(InternalEncryption::verifyPassword)(std::string));
- context.registerNonparametricMethod(this, "", (int)(InternalEncryption::getState));
- context.registerNonparametricMethod(this, "", (unsigned int)(InternalEncryption::getSupportedOptions));
+ context.expose(this, "", (int)(InternalEncryption::mount)(std::string));
+ context.expose(this, "", (int)(InternalEncryption::umount)());
+ context.expose(this, "", (int)(InternalEncryption::encrypt)(std::string, unsigned int));
+ context.expose(this, "", (int)(InternalEncryption::decrypt)(std::string));
+ context.expose(this, "", (int)(InternalEncryption::isPasswordInitialized)());
+ context.expose(this, "", (int)(InternalEncryption::initPassword)(std::string));
+ context.expose(this, "", (int)(InternalEncryption::cleanPassword)(std::string));
+ context.expose(this, "", (int)(InternalEncryption::changePassword)(std::string, std::string));
+ context.expose(this, "", (int)(InternalEncryption::verifyPassword)(std::string));
+ context.expose(this, "", (int)(InternalEncryption::getState)());
+ context.expose(this, "", (unsigned int)(InternalEncryption::getSupportedOptions)());
}
InternalEncryption::~InternalEncryption()
SecureErase::SecureErase(ODEControlContext &ctx) :
context(ctx), devicePath("")
{
- context.registerParametricMethod(this, "", (int)(SecureErase::erase)(std::string));
- context.registerParametricMethod(this, "", (int)(SecureErase::clean)(std::string));
+ context.expose(this, "", (int)(SecureErase::erase)(std::string));
+ context.expose(this, "", (int)(SecureErase::clean)(std::string));
}
SecureErase::~SecureErase()