--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/meetingrequest/mrcasplugin/inc/cesmrcascontactaction.h Wed Sep 01 12:28:57 2010 +0100
@@ -0,0 +1,137 @@
+/*
+* Copyright (c) 2007-2009 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: Definition of the class CESMRCasContactAction.
+ *
+*/
+
+
+#ifndef CESMRCASCONTACTACTION_H
+#define CESMRCASCONTACTACTION_H
+
+//<cmail>
+#include "mfsccontactaction.h"
+#include "mfscreasoncallback.h"
+//</cmail>
+
+/**
+ * Create meeting request single action implementation.
+ * part of the MFscContactAction Ecom API
+ */
+NONSHARABLE_CLASS(CESMRCasContactAction) :
+ public CBase,
+ public MFscContactAction
+ {
+public:
+
+ /**
+ * Two-phased constructor.
+ *
+ * @param aReasonCallback is reference to Reason callback interface
+ * @param aContactActionUid is Uid of action
+ * @param aActionType specifies action type
+ * @param aActionMenuTextResourceId action menu text
+ * @param aIcon specifies icon for the action
+ * @return Pointer to the newly create class CESMRCasContactAction
+ */
+ static CESMRCasContactAction* NewL(
+ MFscReasonCallback& aReasonCallback,
+ TUid aContactActionUid,
+ TUint64 aActionType,
+ TInt aActionMenuTextResourceId,
+ CGulIcon* aIcon );
+
+ /**
+ * Destructor.
+ */
+ virtual ~CESMRCasContactAction( );
+
+public:// From MPbkxContactAction
+
+ /**
+ * @see MFscContactAction::Uid
+ */
+ virtual TUid Uid( ) const;
+
+ /**
+ * @see MFscContactAction::Type
+ */
+ virtual TUint64 Type( ) const;
+
+ /**
+ * @see MFscContactAction::Icon
+ */
+ virtual const CGulIcon* Icon( ) const;
+
+ /**
+ * @see MFscContactAction::ActionMenuText
+ */
+ virtual const TDesC& ActionMenuText( ) const;
+
+ /**
+ * @see MFscContactAction::ReasonL
+ */
+ virtual void ReasonL( TInt aReasonId, HBufC*& aReason ) const;
+
+private:
+ /**
+ * Constructor
+ *
+ * @param aReasonCallback is reference to Reason callback interface
+ * @param aContactActionUid is Uid of action
+ * @param aActionType specifies action type
+ * @param aIcon specifies icon for the action
+ */
+ CESMRCasContactAction(
+ MFscReasonCallback& aReasonCallback,
+ TUid aContactActionUid,
+ TUint64 aActionType,
+ CGulIcon* aIcon );
+
+ /**
+ * Second phase constructor
+ *
+ * @param aActionMenuTextResourceId action menu text
+ */
+ void ConstructL( TInt aActionMenuTextResourceId );
+
+private:// data
+
+ /**
+ * Uid of action
+ */
+ TUid iContactActionUid;
+
+ /**
+ * Type of action
+ */
+ TUint64 iActionType;
+
+ /**
+ * Own: Icon for action
+ */
+ CGulIcon* iIcon;
+
+ /**
+ * Own: Action menu text of ation
+ */
+ TDesC* iActionMenuText;
+
+ /**
+ * Reference to Reason callback interface
+ */
+ MFscReasonCallback& iReasonCallback;
+ };
+
+#endif // CESMRCASCONTACTACTION_H
+