emailuis/nmailui/inc/nmsendserviceinterface.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 16 Apr 2010 14:51:52 +0300
changeset 18 578830873419
child 20 ecc8def7944a
permissions -rw-r--r--
Revision: 201011 Kit: 201015

/*
 * 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>

#ifdef Q_OS_SYMBIAN
#include <xqserviceprovider.h>
#else
#define NM_WINS_ENV
#include <QVariant>
#endif

//  FORWARD DECLARATIONS
class NmDataManager;
class NmMailboxListModel;
class NmUiEngine;
class NmApplication;
class NmId;


class NmSendServiceInterface 
#ifndef NM_WINS_ENV
    : public XQServiceProvider
#else
    : public QObject
#endif
{
    Q_OBJECT

public:

    NmSendServiceInterface(QObject *parent,
                           NmUiEngine &mailboxListModel,
                           NmApplication* application);

#ifndef NM_WINS_ENV
    ~NmSendServiceInterface();
#else
    virtual ~NmSendServiceInterface();
#endif


public slots:

    void send(QVariant data);


private:

    bool selectMailbox(NmId &mailboxId);


private: // Data

    NmApplication *mApplication; // Not owned
    NmUiEngine &mUiEngine;
    int mAsyncReqId;
};

#endif /* NMSENDSERVICEINTERFACE_H_ */

// End of file.