www.pudn.com > sockets.rar > socketsdocument.h
/* Copyright (c) 2004, Nokia. All rights reserved */ #ifndef __SOCKETSDOCUMENT_H__ #define __SOCKETSDOCUMENT_H__ // INCLUDES #include// FORWARD DECLARATIONS class CSocketsAppUi; class CEikApplication; // CLASS DECLARATION /** * CSocketsDocument * An instance of class CSocketsDocument is the Document part of the AVKON * application framework for the CSSync example application */ class CSocketsDocument : public CEikDocument { public: // Constructors and destructors /** * NewL. * Two-phased constructor. * Constructs a CSocketsDocument for the AVKON application aApp * using two phase construction, and returns a pointer to the * created object. * @param aApp Application creating this document. * @return A pointer to the created instance of CSocketsDocument. */ static CSocketsDocument* NewL( CEikApplication& aApp ); /** * NewLC. * Two-phased constructor. * Constructs a CSocketsDocument for the AVKON application aApp * using two phase construction, and returns a pointer to the * created object. * @param aApp Application creating this document. * @return A pointer to the created instance of CSocketsDocument. */ static CSocketsDocument* NewLC( CEikApplication& aApp ); /** * ~CSocketsDocument. * Destructor. * Destroys the object and release all memory objects. */ virtual ~CSocketsDocument(); private: // Constructors and destructors /** * CSocketsDocument. * C++ default constructor. * Performs the first phase of two phase construction. * @param aApp Application creating this document. */ CSocketsDocument( CEikApplication& aApp ); /** * ConstructL. * 2nd phase constructor. */ void ConstructL(); private: // Functions from base classes /** * From CAknDocument, CreateAppUiL. * Creates a CSocketsAppUi object and returns a pointer to it. * @return A pointer to the created instance of the AppUi created. */ CEikAppUi* CreateAppUiL(); }; #endif // __SOCKETSDOCUMENT_H__ // End of File