examples/SDKExamples/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 and/or its subsidiary(-ies).
00010 *  All rights reserved.
00011 *  This component and the accompanying materials are made available
00012 *  under the terms of "Eclipse Public License v1.0"
00013 *  which accompanies this distribution, and is available
00014 *  at the URL "http://www.eclipse.org/legal/epl-v10.html".
00015 * ==============================================================================
00016 */
00017 
00018 
00019 #ifndef __CSSYNCDOCUMENT_H__
00020 #define __CSSYNCDOCUMENT_H__
00021 
00022 // INCLUDE FILES
00023 #include <akndoc.h>
00024 #include "TimeServerSession.h"
00025 
00026 // FORWARD DECLARATIONS
00027 class CCSSyncAppUi;
00028 class CEikApplication;
00029 
00030 // CLASS DECLARATION
00036 class CCSSyncDocument : public CAknDocument
00037     {
00038     public: // Constructors and destructors
00039 
00049         static CCSSyncDocument* NewL( CEikApplication& aApp );
00050 
00060         static CCSSyncDocument* NewLC( CEikApplication& aApp );
00061 
00067         virtual ~CCSSyncDocument();
00068 
00069     public: // New functions
00070 
00075         void UpdateTime();
00076 
00082         const TTime& Time() const;
00083 
00084     public: // Functions from base classes
00085 
00091         CEikAppUi* CreateAppUiL();
00092 
00093     private: // Constructors and destructors
00094 
00101         CCSSyncDocument( CEikApplication& aApp );
00102 
00107         void ConstructL();
00108 
00109 private: // Data
00110 
00114         RTimeServerSession iServer;
00115 
00119         TTime iTime;
00120 };
00121 
00122 
00123 #endif // __CSSYNCDOCUMENT_H__
00124 
00125 
00126 // End of File

Generated by  doxygen 1.6.2