examples/SDKExamples/ClientServerSync/client/inc/timeserversession.h

00001 /*
00002 * ==============================================================================
00003 *  Name        : timeserversession.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 __TIMESERVERSESSION_H__
00020 #define __TIMESERVERSESSION_H__
00021 
00022 // INCLUDE FILES
00023 #include <e32base.h>
00024 
00025 // CONSTANTS
00026 // Number of message slots to reserve for this client server session.
00027 // Since we only communicate synchronously here, we never have any
00028 // outstanding asynchronous requests.
00029 static const TUint KDefaultMessageSlots = 0;
00030 
00031 // Server UID
00032 const TUid KServerUid3 = { 0xA00001FC };
00033 
00034 _LIT( KTimeServerFilename, "CSSyncServer.EXE" );
00035 
00036 #ifdef __WINS__
00037 static const TUint KServerMinHeapSize =  0x1000;  //  4K
00038 static const TUint KServerMaxHeapSize = 0x10000;  // 64K
00039 #endif
00040 
00041 // CLASS DECLARATION
00046 class RTimeServerSession : public RSessionBase
00047     {
00048     public: // Constructors and destructors
00049 
00054         RTimeServerSession();
00055 
00056     public: // New functions
00057 
00063         TInt Connect();
00064 
00070         TVersion Version() const;
00071 
00077         void RequestTime( TTime& aTime ) const;
00078 
00079     };
00080 
00081 #endif // __TIMESERVERSESSION_H__
00082 
00083 
00084 // End of File

Generated by  doxygen 1.6.2