emailuis/nmailui/inc/nmsendserviceinterface.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 15:04:17 +0300
branchRCL_3
changeset 63 d189ee25cf9d
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* Copyright (c) 2010 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: NMail Application service interface used for interfacing between
*              QT highway and other applications
*
*/

#ifndef NMSENDSERVICEINTERFACE_H_
#define NMSENDSERVICEINTERFACE_H_

//  INCLUDES
#include <QObject>
#include <QVariant>

#include <xqserviceprovider.h>

//  FORWARD DECLARATIONS
class NmDataManager;
class NmMailboxListModel;
class NmUiEngine;
class NmApplication;
class NmUiStartParam;
class NmMailboxSelectionDialog;
class NmId;
class HbView;


class NmSendServiceInterface
    : public XQServiceProvider
{
    Q_OBJECT

public:

    NmSendServiceInterface(QString interfaceName,
                           QObject *parent,
                           NmUiEngine &mailboxListModel,
                           NmApplication* application);
    virtual ~NmSendServiceInterface();

public slots:

    void send(QVariant data);
    void selectionDialogClosed(NmId &mailboxId);

private:

    void launchEditorView(NmId mailboxId);
    void cancelService();

private: // Data

    NmApplication *mApplication;    // Not owned
    NmUiEngine &mUiEngine;
    int mAsyncReqId;
    NmUiStartParam *mStartParam;    // Owned
    NmMailboxSelectionDialog *mSelectionDialog; // Owned
    HbView *mCurrentView;
};

#endif /* NMSENDSERVICEINTERFACE_H_ */

// End of file.