backupandrestore/backupengine/inc/sbesession.h
changeset 0 d0791faffa3f
equal deleted inserted replaced
-1:000000000000 0:d0791faffa3f
       
     1 /**
       
     2 * Copyright (c) 2004-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 "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 * Declaration of CSBESession class.
       
    16 * 
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 /**
       
    23  @file
       
    24 */
       
    25 #ifndef __SBESESSION_H__
       
    26 #define __SBESESSION_H__
       
    27 
       
    28 namespace conn
       
    29 	{
       
    30 	class CDataOwnerInfo;
       
    31 	class CSBESession : public CSession2
       
    32 	/**
       
    33     @internalComponent
       
    34 	@ingroup Server
       
    35 
       
    36 	A SBE client Session.
       
    37 	*/
       
    38 		{
       
    39 		public:
       
    40 			CSBESession();
       
    41 			virtual void CreateL();
       
    42 
       
    43 		private:
       
    44 			~CSBESession();
       
    45 			inline CSBEServer& Server() const;
       
    46 			void ServiceL(const RMessage2& aMessage);
       
    47 
       
    48 			void PrepDataOwnerInfoL(const RMessage2& aMessage);
       
    49 			void ReturnDataOwnerInfoL(const RMessage2& aMessage);
       
    50 			void PrepPublicFileListL(const RMessage2& aMessage);
       
    51 			void ReturnPublicFileListL(const RMessage2& aMessage);
       
    52 			void PrepPublicFileListRawL(const RMessage2& aMessage);
       
    53 			void ReturnPublicFileListRawL(const RMessage2& aMessage);
       
    54 			void PrepPublicFileListXMLL(const RMessage2& aMessage);
       
    55 			void ReturnPublicFileListXMLL(const RMessage2& aMessage);
       
    56 			void SetBURModeL(const RMessage2& aMessage);
       
    57 			void SetSIDListForPartialBURL(const RMessage2& aMessage);
       
    58 			void PrepSIDStatusL(const RMessage2& aMessage);
       
    59 			void ReturnSIDStatusL(const RMessage2& aMessage);
       
    60 			void RequestDataAsyncL(const RMessage2& aMessage);
       
    61 			void RequestDataSyncL(const RMessage2& aMessage);
       
    62 			void SupplyDataSyncL(const RMessage2& aMessage);
       
    63 			void GetExpectedDataSizeL(const RMessage2& aMessage);
       
    64 			void AllSnapshotsSuppliedL(const RMessage2& aMessage);
       
    65 			void AllSystemFilesRestoredL();
       
    66 			void PrepLargePublicFileListL(const RMessage2& aMessage);
       
    67 			void ReturnLargePublicFileListL(const RMessage2& aMessage);
       
    68 			
       
    69 			void ResetTransferBuf();
       
    70 
       
    71 		private:
       
    72 			/** Heap allocated descriptor for storing an externalised array upon a 
       
    73 			2 stage server-client descriptor send */
       
    74 			HBufC8* iTransferBuf;
       
    75 			
       
    76 			/** Heap allocated descriptor for storing a text string upon a 
       
    77 			2 stage server-client descriptor send */
       
    78 			HBufC* iTransferTextBuf;
       
    79 
       
    80 			/** Used in conjunction with iTransferBuf when passing back CDataOwnerInfo array 
       
    81 			so that message is completed on the second IPC call with the num of elements in
       
    82 			returned externalised array */
       
    83 			TInt iArrayCount;
       
    84 			
       
    85 			/** Message member used for asynchronous IPC calls */
       
    86 			RMessage2 iMessage;
       
    87 			
       
    88 			/** Finished flag used for storing data in a large public file list 2-part IPC call */
       
    89 			TBool iFinished;
       
    90 			
       
    91 			/** Count used for large public file list 2-part IPC call */
       
    92 			TInt iTotalEntries;
       
    93 			
       
    94 			/** Saves the externalised current entry for packing into the next message */
       
    95 			HBufC8* iExtCurEntry;
       
    96 		};
       
    97 	}
       
    98 
       
    99 #endif //__SBESESSION_H__