#pragma once
|
#include "CursorBase.h"
|
#include "dbCursor.h"
|
#include "MBAMDBConnect.h"
|
|
#define FOLDER_BOX_IN ( 1 ) // ÊÕ¼þÏä
|
#define FOLDER_BOX_OUT ( 2 ) // ·¢¼þÏä
|
#define FOLDER_FAVORITE ( 3 ) // ÊղؼÐ
|
#define FOLDER_PRE_PROCESS ( 4 ) // ´ý´¦Àí
|
#define FOLDER_BOX_DRAFT ( 5 ) // ²Ý¸åÏä
|
#define FOLDER_RECYCLER ( 6 ) // ÒÑɾ³ý
|
#define FOLDER_BROADCAST ( 8 ) // ¹«¸æ£¬¹ã²¥
|
#define FOLDER_ADDIN ( 9 ) // ²å¼þÏûÏ¢
|
#define FOLDER_GUNGHO ( 9 ) // ¹²ºÃÏûÏ¢
|
|
// CMsgFolder command target
|
class AFX_EXT_CLASS CMsgFolderItem : public CCursorBase
|
{
|
public:
|
CMsgFolderItem( );
|
virtual ~CMsgFolderItem();
|
|
// Attributes
|
public:
|
long m_nID;
|
CString m_strName;
|
long m_nParentID;
|
// Operations
|
public:
|
void Clear();
|
virtual BOOL GetItemValue( CString strName, CString &strValue )
|
{ return CCursorBase::GetItemValue( strName, strValue ); }
|
virtual BOOL GetItemValue( CString strName, COleVariant &varData );
|
|
BOOL InsertRecord( CDBConnect *pAConnect);
|
BOOL UpdateRecord(CDBConnect *pAConnect );
|
};
|
|
class AFX_EXT_CLASS CMsgFolders : public CdbCursor, public CMsgFolderItem
|
{
|
public:
|
CMsgFolders(CMBAMDBConnect *pAConnect);
|
virtual ~CMsgFolders();
|
void operator =( const CMsgFolders& item );
|
|
// Attributes
|
public:
|
// Operations
|
public:
|
int ListFolder( long nParentFolderID );
|
int ListSpFolder( long nFolderID );
|
int ListSpFolder( long nParentFolderID, LPCTSTR lpszFolderName );
|
long GetMaxFolderID( );
|
long ListRecordCount( );
|
public:
|
virtual bool GetData( );
|
void AddFloder( CMsgFolderItem *pItem);
|
|
};
|