emailuis/nmailui/inc/nmviewerserviceinterface.h
author hgs
Fri, 03 Sep 2010 14:07:42 +0300
changeset 66 084b5b1f02a7
parent 47 f83bd4ae1fe3
child 74 6c59112cfd31
permissions -rw-r--r--
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 viewing a mail
*              according to given id. The service utilizes the Qt highway framework.
*
*/

#ifndef NMVIEWERSERVICEINTERFACE_H_
#define NMVIEWERSERVICEINTERFACE_H_

//  INCLUDES
#include <QObject>
#include <xqserviceprovider.h>

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


class NmViewerServiceInterface : public XQServiceProvider
{
    Q_OBJECT

public:

    NmViewerServiceInterface(QObject *parent,
                             NmApplication *application,
                             NmUiEngine &uiEngine);
    
    ~NmViewerServiceInterface();


public slots:

    /*!
        Depricated!
    */
    void viewMessage(QVariant mailboxId, QVariant folderId, QVariant messageId);

    void viewMessage(QVariant idList, QVariant flags);


private:

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


#endif /* NMVIEWERSERVICEINTERFACE_H_ */