In This Topic
#ifndef _SimpleChoiceLib_SimpleChoiceLib_CAccountAdminRequest_h
#define _SimpleChoiceLib_SimpleChoiceLib_CAccountAdminRequest_h
#include "../SimpleChoiceLib/CreateAccount.h"
#include "../SimpleChoiceLib/DeleteAccount.h"
#include "../SimpleChoiceLib/ChangeAccountPassword.h"
namespace SimpleChoiceLib { class CClassFactory; };
namespace SimpleChoiceLib
{
class SimpleChoiceLib_DLL CAccountAdminRequest : public CInstanceMonitor
, public virtual SimpleChoiceLib::CXmlCommonBase
{
public:
static SimpleChoiceLib::CAccountAdminRequestPtr CreateInstance(LPCTSTR lpctElementName=_T("AccountAdminRequest"));
protected:
CAccountAdminRequest(LPCTSTR lpctElementName=_T("AccountAdminRequest"));
virtual ~CAccountAdminRequest();
friend class SimpleChoiceLib::CClassFactory;
virtual void Init();
virtual void AccessProperty(int iPropertyIndex, bool read, LtXmlLib20::LtVariant& rValue);
virtual LtXmlLib20Data::CParentElementInfo* GetClassInfo() const;
virtual LtXmlLib20Data::CElementInfo** GetClassElementInfo() const;
virtual LtXmlLib20Data::CAttributeInfo** GetClassAttributeInfo() const;
static void CleanMetaData();
void Cleanup();
virtual void OnEvent(LtXmlLib20::CXmlObjectBase* pMsgSource, LtXmlLib20::IEventSink::MsgType eMsgType, void* pData);
void ClearChoice(LPCTSTR selectedElement);
public:
SimpleChoiceLib::CCreateAccountPtr GetCreateAccount() const;
void SetCreateAccount(SimpleChoiceLib::CCreateAccount* value);
protected:
SimpleChoiceLib::CCreateAccountPtr m_CreateAccount;
public:
SimpleChoiceLib::CDeleteAccountPtr GetDeleteAccount() const;
void SetDeleteAccount(SimpleChoiceLib::CDeleteAccount* value);
protected:
SimpleChoiceLib::CDeleteAccountPtr m_DeleteAccount;
public:
SimpleChoiceLib::CChangeAccountPasswordPtr GetChangeAccountPassword() const;
void SetChangeAccountPassword(SimpleChoiceLib::CChangeAccountPassword* value);
protected:
SimpleChoiceLib::CChangeAccountPasswordPtr m_ChangeAccountPassword;
public:
std::tstring GetChoiceSelectedElement() const;
protected:
std::tstring m_validElement;
public:
virtual SimpleChoiceLib::CAccountAdminRequestPtr Clone() const;
virtual std::tstring GetTargetNamespace() const;
virtual std::tstring GetNamespace() const;
virtual LtXmlLib20::CXmlObjectBase* GetBase();
// Internal data for XML serialization
private:
static LtXmlLib20Data::CParentElementInfo* ms_pParentElementInfo;
static LtXmlLib20Data::CElementInfo** ms_ppElementInfo;
static LtXmlLib20Data::CAttributeInfo** ms_ppAttributeInfo;
};
};
#endif