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

00001 /*
00002 * ==============================================================================
00003 *  Name        : timeserversession.h
00004 *  Part of     : CSAsync
00005 *  Interface   :
00006 *  Description :
00007 *  Version     :
00008 
00009 *  Copyright (c) 2004-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 // In this example we can have one asynchronous request outstanding
00028 // and one synchronous request in progress.
00029 const TUint KDefaultMessageSlots = 2;
00030 
00031 const TUid KServerUid3 = { 0xA0000227 }; // Server UID
00032 
00033 _LIT( KTimeServerFilename, "CSAsyncServer" );
00034 
00035 #ifdef __WINS__
00036 static const TUint KServerMinHeapSize =  0x1000;  //  4K
00037 static const TUint KServerMaxHeapSize = 0x10000;  // 64K
00038 #endif
00039 
00040 // CLASS DECLARATION
00045 class RTimeServerSession : public RSessionBase
00046     {
00047     public: // Constructors and destructors
00048 
00053         RTimeServerSession();
00054 
00055     public: // New functions
00056 
00062         TInt Connect();
00063 
00069         TVersion Version() const;
00070 
00077         void RequestTime( TTime& aTime,TRequestStatus& aStatus );
00078 
00083         void CancelRequestTime() const;
00084 
00085     private: // Data
00086 
00090         TPtr8 iTimeBuffer;
00091     };
00092 
00093 
00094 #endif // __TIMESERVERSESSION_H__
00095 
00096 
00097 // End of File

Generated by  doxygen 1.6.2