diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-06-28 22:22:32 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-06-28 22:22:32 +0100 |
commit | c0c336500955a23e344651e5412c9d9d441ef4ee (patch) | |
tree | 790769c748db307cf3314f6e896e2f61c68561a2 /src/T2DLL/T2Name.h | |
parent | 37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff) | |
download | t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip |
first pass of T2DLL
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2Name.h | 39 |
1 files changed, 26 insertions, 13 deletions
diff --git a/src/T2DLL/T2Name.h b/src/T2DLL/T2Name.h index 290f842..102e6a8 100644 --- a/src/T2DLL/T2Name.h +++ b/src/T2DLL/T2Name.h @@ -1,25 +1,38 @@ #pragma once #include "common.h" -class T2Name { +// assumed names +enum { + kTenantNameType = 1, + kMoverNameType = 2, + kMoverModuleNameType = 3, + // what's 4?? we may never know + kPeopleNameType = 5 +}; + +class AFX_EXT_CLASS T2Name { public: T2Name(); T2Name(T2Archive&); - T2Name(CString, T2Tenant*, int); - T2Name(CString, T2People*, int); - T2Name(CString, T2Mover*, int); - T2Name(CString, T2MoverModule*, int); + 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&, unsigned int&); + short GetName(CString& outName, unsigned int& outID); void SetName(CString); void MakeFullName(T2TowerDoc*, CString&); - int operator==(const CString&) const; + BOOL operator==(const CString&) const; void Write(T2Archive&) const; - int GetSortKey() {} - int GetType() {} - unsigned int GetID() {} - int IsFavorite() const {} - T2Name(const T2Name&) {} - T2Name& operator=(const T2Name&) {} + 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; }; |