Back

// PSLAccounts.h : Declaration of the CPSLAccounts

#pragma once
#include "resource.h"       // main symbols
#include "GUIDs.h"
#include "PSLExceptions.h"
#include "ProSysLib_i.h"

DECLARE_PSL_COLLECTION(Accounts, Account);

class ATL_NO_VTABLE CPSLAccounts :
   public CComObjectRootEx<CComMultiThreadModel>,
   public CComCoClass<CPSLAccounts, &CLSID_PSLAccounts>,
   public CAccountsCollection,
   public CPSLException<&CLSID_PSLAccounts, &IID_IPSLAccounts>
{
public:

   CPSLAccounts();

BEGIN_COM_MAP(CPSLAccounts)
   COM_INTERFACE_ENTRY(IPSLAccounts)
   COM_INTERFACE_ENTRY(IDispatch)
   COM_INTERFACE_ENTRY(ISupportErrorInfo)
END_COM_MAP()

   DECLARE_PROTECT_FINAL_CONSTRUCT()
   HRESULT FinalConstruct();
   void FinalRelease();

   ////////////////////////////
   // Interface Implementation:
   ////////////////////////////

   STDMETHOD(Update)();

protected:

   virtual HRESULT OnIndexOutOfRange();

private:

};

Top