msg_plat/messaging_center_ui_utilities_api/inc/MuiuMsgEditorServiceSession.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 02 Feb 2010 00:08:43 +0200
changeset 5 4697dfb2d7ad
parent 0 72b543305e3a
permissions -rw-r--r--
Revision: 201003 Kit: 201005

/*
* Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  
*     Server-side message editor/viewer service implementations
*
*/



#ifndef MUIUMSGEDITORSERVICESESSION_H
#define MUIUMSGEDITORSERVICESESSION_H

#include <f32file.h>
#include <eikdoc.h>
#include <AknServerApp.h>

enum TMuiuMsgEditorServiceCmds
	{
	EMuiuMsgEditorServiceCmdOpen = RApaAppServiceBase::KServiceCmdBase
	};



/**
* Server-side message editor/viewer service implementations
*/
class CMuiuMsgEditorServiceSession : public CAknAppServiceBase
	{
	public:
		/**
		* C++ Constructor
		*/
		IMPORT_C CMuiuMsgEditorServiceSession();
		
		/**
		* C++ Destructor
		*/
		~CMuiuMsgEditorServiceSession();

	protected: // from CSession2
		/**
		* Just basecalls CAknAppServiceBase
		*/
		void CreateL();
		
		/**
		* Checks the function from aMessage. If it is
		* EMuiuMsgEditorServiceCmdOpen -> calls
		* OpenEmbedded. Otherwise basecalls CAknAppServiceBase.
		*/
		void ServiceL(const RMessage2& aMessage);
		
		/**
		* Basecalls CAknAppServiceBase.
		*/
		void ServiceError(const RMessage2& aMessage,TInt aError);

	private:
		/**
		* Constructs TEditorParameters from aMessage
		* Externalizes the params to store and restore
		* CEikDocument from there (ie. starts messaging
		* editor/viewer). Completes aMessage.
		*/
		void OpenEmbeddedL( const RMessage2& aMessage );

	private:
		CEikDocument* iDoc;
	};

#endif


// End of file