msg_plat/messaging_center_ui_utilities_api/inc/MuiuMsgEditorServiceSession.h
changeset 0 72b543305e3a
child 5 4697dfb2d7ad
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2004 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 *     Server-side message editor/viewer service implementations
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef MUIUMSGEDITORSERVICESESSION_H
       
    22 #define MUIUMSGEDITORSERVICESESSION_H
       
    23 
       
    24 #include <f32file.h>
       
    25 #include <eikdoc.h>
       
    26 #include <aknserverapp.h>
       
    27 
       
    28 enum TMuiuMsgEditorServiceCmds
       
    29 	{
       
    30 	EMuiuMsgEditorServiceCmdOpen = RApaAppServiceBase::KServiceCmdBase
       
    31 	};
       
    32 
       
    33 
       
    34 
       
    35 /**
       
    36 * Server-side message editor/viewer service implementations
       
    37 */
       
    38 class CMuiuMsgEditorServiceSession : public CAknAppServiceBase
       
    39 	{
       
    40 	public:
       
    41 		/**
       
    42 		* C++ Constructor
       
    43 		*/
       
    44 		IMPORT_C CMuiuMsgEditorServiceSession();
       
    45 		
       
    46 		/**
       
    47 		* C++ Destructor
       
    48 		*/
       
    49 		~CMuiuMsgEditorServiceSession();
       
    50 
       
    51 	protected: // from CSession2
       
    52 		/**
       
    53 		* Just basecalls CAknAppServiceBase
       
    54 		*/
       
    55 		void CreateL();
       
    56 		
       
    57 		/**
       
    58 		* Checks the function from aMessage. If it is
       
    59 		* EMuiuMsgEditorServiceCmdOpen -> calls
       
    60 		* OpenEmbedded. Otherwise basecalls CAknAppServiceBase.
       
    61 		*/
       
    62 		void ServiceL(const RMessage2& aMessage);
       
    63 		
       
    64 		/**
       
    65 		* Basecalls CAknAppServiceBase.
       
    66 		*/
       
    67 		void ServiceError(const RMessage2& aMessage,TInt aError);
       
    68 
       
    69 	private:
       
    70 		/**
       
    71 		* Constructs TEditorParameters from aMessage
       
    72 		* Externalizes the params to store and restore
       
    73 		* CEikDocument from there (ie. starts messaging
       
    74 		* editor/viewer). Completes aMessage.
       
    75 		*/
       
    76 		void OpenEmbeddedL( const RMessage2& aMessage );
       
    77 
       
    78 	private:
       
    79 		CEikDocument* iDoc;
       
    80 	};
       
    81 
       
    82 #endif
       
    83 
       
    84 
       
    85 // End of file