1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- #ifndef ECAB_OBJECTTABLE_H
- #define ECAB_OBJECTTABLE_H
- #include <kopano/zcdefs.h>
- #include "soapH.h"
- #include "ECGenericObjectTable.h"
- #include "ECUserManagement.h"
- struct soap;
- namespace KC {
- struct ECODAB {
- unsigned int ulABId;
- unsigned int ulABType;
- unsigned int ulABParentId;
- unsigned int ulABParentType;
- };
- #define AB_FILTER_SYSTEM 0x00000001
- #define AB_FILTER_ADDRESSLIST 0x00000002
- #define AB_FILTER_CONTACTS 0x00000004
- class ECABObjectTable : public ECGenericObjectTable {
- protected:
- ECABObjectTable(ECSession *lpSession, unsigned int ulABId, unsigned int ulABType, unsigned int ulABParentId, unsigned int ulABParentType, unsigned int ulFlags, const ECLocale &locale);
- virtual ~ECABObjectTable();
- public:
- static ECRESULT Create(ECSession *lpSession, unsigned int ulABId, unsigned int ulABType, unsigned int ulABParentId, unsigned int ulABParentType, unsigned int ulFlags, const ECLocale &locale, ECABObjectTable **lppTable);
-
- ECRESULT GetColumnsAll(ECListInt* lplstProps);
- ECRESULT Load();
- static ECRESULT QueryRowData(ECGenericObjectTable *lpThis, struct soap *soap, ECSession *lpSession, ECObjectTableList* lpRowList, struct propTagArray *lpsPropTagArray, void* lpObjectData, struct rowSet **lppRowSet, bool bTableData,bool bTableLimit);
- protected:
-
- ECRESULT LoadHierarchyAddressList(unsigned int ulObjectId, unsigned int ulFlags,
- list<localobjectdetails_t> **lppObjects);
- ECRESULT LoadHierarchyCompany(unsigned int ulObjectId, unsigned int ulFlags,
- list<localobjectdetails_t> **lppObjects);
- ECRESULT LoadHierarchyContainer(unsigned int ulObjectId, unsigned int ulFlags,
- list<localobjectdetails_t> **lppObjects);
-
- ECRESULT LoadContentsAddressList(unsigned int ulObjectId, unsigned int ulFlags,
- list<localobjectdetails_t> **lppObjects);
- ECRESULT LoadContentsCompany(unsigned int ulObjectId, unsigned int ulFlags,
- list<localobjectdetails_t> **lppObjects);
- ECRESULT LoadContentsDistlist(unsigned int ulObjectId, unsigned int ulFlags,
- list<localobjectdetails_t> **lppObjects);
- private:
- virtual ECRESULT GetMVRowCount(unsigned int ulObjId, unsigned int *lpulCount);
- ECRESULT ReloadTableMVData(ECObjectTableList* lplistRows, ECListInt* lplistMVPropTag);
- protected:
- unsigned int m_ulUserManagementFlags;
- };
- }
- #endif
|