emailuis/nmailui/inc/nmsendserviceinterface.h
branchRCL_3
changeset 63 d189ee25cf9d
equal deleted inserted replaced
61:dcf0eedfc1a3 63:d189ee25cf9d
       
     1 /*
       
     2 * Copyright (c) 2010 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: NMail Application service interface used for interfacing between
       
    15 *              QT highway and other applications
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef NMSENDSERVICEINTERFACE_H_
       
    20 #define NMSENDSERVICEINTERFACE_H_
       
    21 
       
    22 //  INCLUDES
       
    23 #include <QObject>
       
    24 #include <QVariant>
       
    25 
       
    26 #include <xqserviceprovider.h>
       
    27 
       
    28 //  FORWARD DECLARATIONS
       
    29 class NmDataManager;
       
    30 class NmMailboxListModel;
       
    31 class NmUiEngine;
       
    32 class NmApplication;
       
    33 class NmUiStartParam;
       
    34 class NmMailboxSelectionDialog;
       
    35 class NmId;
       
    36 class HbView;
       
    37 
       
    38 
       
    39 class NmSendServiceInterface
       
    40     : public XQServiceProvider
       
    41 {
       
    42     Q_OBJECT
       
    43 
       
    44 public:
       
    45 
       
    46     NmSendServiceInterface(QString interfaceName,
       
    47                            QObject *parent,
       
    48                            NmUiEngine &mailboxListModel,
       
    49                            NmApplication* application);
       
    50     virtual ~NmSendServiceInterface();
       
    51 
       
    52 public slots:
       
    53 
       
    54     void send(QVariant data);
       
    55     void selectionDialogClosed(NmId &mailboxId);
       
    56 
       
    57 private:
       
    58 
       
    59     void launchEditorView(NmId mailboxId);
       
    60     void cancelService();
       
    61 
       
    62 private: // Data
       
    63 
       
    64     NmApplication *mApplication;    // Not owned
       
    65     NmUiEngine &mUiEngine;
       
    66     int mAsyncReqId;
       
    67     NmUiStartParam *mStartParam;    // Owned
       
    68     NmMailboxSelectionDialog *mSelectionDialog; // Owned
       
    69     HbView *mCurrentView;
       
    70 };
       
    71 
       
    72 #endif /* NMSENDSERVICEINTERFACE_H_ */
       
    73 
       
    74 // End of file.