examples/SDKExamples/ClientServerSync/server/inc/timesession.h

00001 /*
00002 * ==============================================================================
00003 *  Name        : timesession.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 __TIMESESSION_H__
00020 #define __TIMESESSION_H__
00021 
00022 // INCLUDE FILES
00023 #include <e32base.h>
00024 
00025 // FORWARD DECLARATIONS
00026 class CTimeServer;
00027 
00028 // CLASS DECLARATION
00033 class CTimeServerSession : public CSession2
00034     {
00035     public: // Constructors and destructors
00036 
00043         static CTimeServerSession* NewL( CTimeServer& aServer );
00044 
00051         static CTimeServerSession* NewLC( CTimeServer& aServer );
00052 
00057         virtual ~CTimeServerSession();
00058 
00059     public: // Functions from base classes
00060 
00067         void ServiceL( const RMessage2& aMessage );
00068 
00069     private: // Constructors and destructors
00070 
00076         CTimeServerSession( CTimeServer& aServer );
00077 
00082         void ConstructL();
00083 
00084     private: // New methods
00085 
00092         void PanicClient( const RMessagePtr2& aMessage, TInt aPanic ) const;
00093 
00100         void RequestTimeL( const RMessage2& aMessage );
00101 
00102     private: // Data
00103 
00107         CTimeServer& iServer;
00108     };
00109 
00110 #endif // __TIMESESSION_H__
00111 
00112 
00113 // End of File

Generated by  doxygen 1.6.2