remotemgmt_plat/sync_service_api/inc/SyncServiceSession.h
branchRCL_3
changeset 25 b183ec05bd8c
parent 24 13d7c31c74e0
child 26 19bba8228ff0
equal deleted inserted replaced
24:13d7c31c74e0 25:b183ec05bd8c
     1 /*
       
     2 * Copyright (c) 2005 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: definition of syncservice constants/exported methods
       
    15 * 	This is part of remotemgmt_plat.
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef SYNCSERVICESESSION_H
       
    20 #define SYNCSERVICESESSION_H
       
    21 
       
    22 #include <eikdoc.h>
       
    23 #include <AknServerApp.h>
       
    24 
       
    25 enum TSyncServiceCmds
       
    26 	{
       
    27 	ESyncServiceCommand = RApaAppServiceBase::KServiceCmdBase
       
    28 	};
       
    29 
       
    30 /**
       
    31 *  CSyncServiceSession  
       
    32 *
       
    33 *  @lib syncservice.lib
       
    34 *  @since Series 60 3.0
       
    35 */
       
    36 class CSyncServiceSession : public CAknAppServiceBase
       
    37 	{
       
    38 	public:
       
    39 	
       
    40         /**
       
    41         * C++ default constructor.
       
    42         */
       
    43 		IMPORT_C CSyncServiceSession( );
       
    44 		
       
    45     	/**
       
    46 		* C++ Destructor
       
    47 		*/
       
    48 		virtual ~CSyncServiceSession();
       
    49 
       
    50 	protected: // from CSession2
       
    51 	
       
    52 		/**
       
    53 		* Just basecalls CAknAppServiceBase
       
    54 		*/
       
    55 		void CreateL();
       
    56 		
       
    57 		/**
       
    58 		* Checks the function from aMessage. If it is
       
    59 		* ESyncServiceStart -> calls
       
    60 		* OpenEmbedded. Otherwise basecalls CAknAppServiceBase.
       
    61 		* @param aMessage 
       
    62 		* @return None
       
    63 		*/
       
    64 		void ServiceL( const RMessage2& aMessage );
       
    65 		
       
    66 		/**
       
    67 		* Basecalls CAknAppServiceBase.
       
    68 		* @param aMessage 
       
    69 		* @param aError
       
    70 		* @return None
       
    71 		*/
       
    72 		void ServiceError( const RMessage2& aMessage, TInt aError );
       
    73 
       
    74 	private:
       
    75 		
       
    76 		/**
       
    77 		* Constructs TSyncParameters from aMessage
       
    78 		* Externalizes the params to store and restore
       
    79 		* CEikDocument from there (ie. starts DS DM sync observing).
       
    80 		* Completes aMessage.
       
    81 		* @param aMessage 
       
    82 		* @return None
       
    83 		*/
       
    84 		void OpenEmbeddedL( const RMessage2& aMessage );
       
    85 
       
    86 	private:
       
    87 		CEikDocument* iDoc;
       
    88 	};
       
    89 
       
    90 #endif //SYNCSERVICESESSION_H