graphics/fbserv/inc/T_DataFbsSession.h
branchSymbian2
changeset 1 8758140453c0
child 6 c108117318cb
equal deleted inserted replaced
0:e8c1ea2c6496 1:8758140453c0
       
     1 /*
       
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Symbian Foundation License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 /**
       
    19 @test
       
    20 @internalComponent
       
    21 
       
    22 This contains CT_DataFbsSession
       
    23 */
       
    24 
       
    25 #if (!defined __T_DATA_FBS_SESSION_H__)
       
    26 #define __T_DATA_FBS_SESSION_H__
       
    27 
       
    28 //	User Includes
       
    29 #include "DataWrapperBase.h"
       
    30 //	EPOC includes
       
    31 #include <e32std.h>
       
    32 #include <fbs.h>
       
    33 
       
    34 class CT_DataFbsSession : public CDataWrapperBase
       
    35 	{
       
    36 public:
       
    37 	static CT_DataFbsSession*	NewL();
       
    38 
       
    39 	virtual TBool	DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
       
    40 
       
    41 	
       
    42 	~CT_DataFbsSession();
       
    43 
       
    44 	virtual TAny*	GetObject();
       
    45 
       
    46 protected:
       
    47 	CT_DataFbsSession();
       
    48 	void	ConstructL();
       
    49 
       
    50 private:
       
    51 	inline void	DoCmdConstructor();
       
    52 	inline void	DoCmdConnect(const TDesC& aSection);
       
    53 	inline void	DoCmdDisconnect();
       
    54 	inline void	DoCmdGetSession(const TDesC& aSection);
       
    55 	inline void	DoCmdCallBack(const TDesC& aSection);
       
    56 	inline void	DoCmdSetCallBack();
       
    57 	inline void	DoCmdResetCallBack();
       
    58 	inline void	DoCmdResourceCount(const TDesC& aSection);
       
    59 	inline void	DoCmdSendCommandL(const TDesC& aSection);
       
    60 	inline void	DoCmdVersion(const TDesC& aSection);
       
    61 	inline void	DoCmdHeapBase();
       
    62 	inline void	DoCmdSessionHandle();
       
    63 
       
    64 	static TInt CallBackFunction(TAny* aPtr);
       
    65 	TInt		CallBackFunction();
       
    66 
       
    67 	TBool		GetFbsMessage(const TDesC& aSection, TInt& aMessage);
       
    68 
       
    69 private:
       
    70 	RFs				iFsUnconnected;
       
    71 
       
    72 	RFbsSession*	iSession;
       
    73 
       
    74 	/** vaiable that temporarily stores value of server resource count that is set
       
    75 	* by iSession->ResourceCount()
       
    76 	*/
       
    77 	TInt			iResourceCount;
       
    78 
       
    79 	/* used to check if the callback function was called*/
       
    80 	TBool			iCallBackCalled;
       
    81 	};
       
    82 
       
    83 #endif /* __T_DATA_FBS_SESSION_H__ */