meetingrequest/mrgui/inc/cesmrsendui.h
branchRCL_3
changeset 12 4ce476e64c59
parent 11 0396474f30f5
child 13 8592a65ad3fb
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
     1 /*
       
     2 * Copyright (c) 2007-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:  ESMR send ui wrapper
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CESMRSENDUI_H
       
    20 #define CESMRSENDUI_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CCalSession;
       
    27 class CCalEntry;
       
    28 class CEikMenuPane;
       
    29 class CSendUi;
       
    30 class TParse;
       
    31 class RFile;
       
    32 class CCalenGlobalData;
       
    33 
       
    34 /**
       
    35 * SendUI wrapper class. Used to send entry information forward. CCalEntry
       
    36 * is converted to VCalendar format before sending.
       
    37 */
       
    38 NONSHARABLE_CLASS( CESMRSendUI ) : public CBase
       
    39     {
       
    40 public: // Factory method and destructor
       
    41     IMPORT_C static CESMRSendUI* NewL(TInt aMenuCommandId);
       
    42     IMPORT_C virtual ~CESMRSendUI();
       
    43 
       
    44 public: // API
       
    45     /**
       
    46      * Can entry be sent or not.
       
    47      *
       
    48      * @param aCommandId - NOT IN USE
       
    49      * @return boolean ETrue/Efalse
       
    50      */
       
    51     IMPORT_C TBool CanSendL(TInt aCommandId);
       
    52 
       
    53     /**
       
    54      * Adds the send ui menu items into menu pane.
       
    55      *
       
    56      * @param aMenuPane - menu pane where items are added
       
    57      * @param aIndex - index of the menu item
       
    58      */
       
    59     IMPORT_C void DisplaySendMenuItemL(CEikMenuPane& aMenuPane, TInt aIndex);
       
    60 
       
    61     /**
       
    62      * Displays the send ui sub menu
       
    63      *
       
    64      * @param aMenuPane - NOT IN USE
       
    65      */
       
    66     IMPORT_C void DisplaySendCascadeMenuL(CEikMenuPane& aMenuPane);
       
    67 
       
    68     /**
       
    69      * Sends the converted entry via selected protocol
       
    70      *
       
    71      * @param aCommand - information about how entry needs to be sent
       
    72      * @param aEntry - entry to be sent.
       
    73      */
       
    74     IMPORT_C void SendAsVCalendarL(TInt aCommand, CCalEntry& aEntry);
       
    75 
       
    76 private: // utility functions
       
    77     void DoSendAsAttachmentFileL(TInt aCommand, TParse& aFilename);
       
    78 
       
    79     void DoSendAsAttachmentHandleL(const RFile& aHandle);
       
    80 
       
    81 private: // constrution
       
    82     CESMRSendUI();
       
    83     void ConstructL(TInt aMenuCommandId);
       
    84 private: // data
       
    85 	/// Own:
       
    86     CSendUi* iSendUi;
       
    87     /// Own:
       
    88     TInt iSendAsCmdId;
       
    89     /// Own:
       
    90     TUid iSelectedMtmUid;
       
    91     /// Own:
       
    92     CArrayFixFlat<TUid>* iSendMtmsToDim;
       
    93     // Own: calendar session
       
    94     CCalSession* iSession;
       
    95     };
       
    96 
       
    97 #endif // CESMRSENDUI_H
       
    98 
       
    99 
       
   100 // End of File