#ifndef T2DLL_T2NAME_H #define T2DLL_T2NAME_H #include "../common.h" // assumed names enum { kTenantNameType = 1, kMoverNameType = 2, kMoverModuleNameType = 3, // what's 4?? we may never know kPeopleNameType = 5 }; class AFX_CLASS_EXPORT T2Name { public: T2Name(); T2Name(T2Archive&); T2Name(CString, T2Tenant*, BOOL favorite); T2Name(CString, T2People*, BOOL favorite); T2Name(CString, T2Mover*, BOOL favorite); T2Name(CString, T2MoverModule*, BOOL favorite); virtual ~T2Name(); short GetName(CString& outName, unsigned int& outID); void SetName(CString); void MakeFullName(T2TowerDoc*, CString&); BOOL operator==(const CString&) const; void Write(T2Archive&) const; int GetSortKey() { return mType; } int GetType() { return mType; } unsigned int GetID() { return mID; } BOOL IsFavorite() const { return mFavorite; } protected: CString mName; int mType; unsigned int mID; BOOL mFavorite; }; #endif