examples/S60CppExamples/ClientServerSync/client/inc/cssyncdocument.h

00001 /*
00002 * ==============================================================================
00003 *  Name        : cssyncdocument.h
00004 *  Part of     : CSSync
00005 *  Interface   :
00006 *  Description :
00007 *  Version     :
00008 *
00009 *  Copyright (c) 2006 Nokia Corporation.
00010 *  This material, including documentation and any related
00011 *  computer programs, is protected by copyright controlled by
00012 *  Nokia Corporation.
00013 * ==============================================================================
00014 */
00015 
00016 
00017 #ifndef __CSSYNCDOCUMENT_H__
00018 #define __CSSYNCDOCUMENT_H__
00019 
00020 // INCLUDE FILES
00021 #include <akndoc.h>
00022 #include "TimeServerSession.h"
00023 
00024 // FORWARD DECLARATIONS
00025 class CCSSyncAppUi;
00026 class CEikApplication;
00027 
00028 // CLASS DECLARATION
00034 class CCSSyncDocument : public CAknDocument
00035     {
00036     public: // Constructors and destructors
00037 
00047         static CCSSyncDocument* NewL( CEikApplication& aApp );
00048 
00058         static CCSSyncDocument* NewLC( CEikApplication& aApp );
00059 
00065         virtual ~CCSSyncDocument();
00066 
00067     public: // New functions
00068 
00073         void UpdateTime();
00074 
00080         const TTime& Time() const;
00081 
00082     public: // Functions from base classes
00083 
00089         CEikAppUi* CreateAppUiL();
00090 
00091     private: // Constructors and destructors
00092 
00099         CCSSyncDocument( CEikApplication& aApp );
00100 
00105         void ConstructL();
00106 
00107 private: // Data
00108 
00112         RTimeServerSession iServer;
00113 
00117         TTime iTime;
00118 };
00119 
00120 
00121 #endif // __CSSYNCDOCUMENT_H__
00122 
00123 
00124 // End of File

Generated by  doxygen 1.6.2