bluetoothengine/btnotif/btdevicedialogplugin/inc/btrecvcompleteddialogwidget.h
author hgs
Tue, 19 Oct 2010 15:09:34 +0300
changeset 70 f5508c13dfe0
parent 67 16e4b9007960
permissions -rw-r--r--
201041

/*
* 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:  BtDeviceDialogWidget class declaration.
*
*/


#ifndef BTRECVCOMPLETEDDIALOGWIDGET_H
#define BTRECVCOMPLETEDDIALOGWIDGET_H

#include <QObject>
#include <QVariantMap>
#include <hbdialog.h>
#include <hbdevicedialoginterface.h>
#include <hbpopup.h>
#include <hbdocumentloader.h>
#include <qstandarditemmodel.h>
#include <hblabel.h>
#include <hbaction.h>


class BTRecvcompletedDialogWidget : public QObject, 
                                public HbDeviceDialogInterface
    {
    Q_OBJECT
    
public:
    BTRecvcompletedDialogWidget(const QVariantMap &parameters);
    ~BTRecvcompletedDialogWidget();
    
public: // from HbDeviceDialogInterface
    bool setDeviceDialogParameters(const QVariantMap &parameters);
    int deviceDialogError() const;
    void closeDeviceDialog(bool byClient);
    HbPopup *deviceDialogWidget() const;
    virtual QObject *signalSender() const;
    
public slots:
    void showClicked();
    void cancelClicked();

private:
    void constructDialog(const QVariantMap &parameters);
    
signals:
    void deviceDialogClosed();
    void deviceDialogData(QVariantMap data);
    
private:
    HbDocumentLoader    *mLoader;
    QStandardItemModel  *mContentItemModel;
    HbLabel             *mHeading;
    HbLabel             *mFileName;
    HbLabel             *mFileSize;
    HbLabel             *mFileCount;
    HbAction            *mShowAction;
    HbAction            *mCancelAction;
    HbDialog            *mReceiveCompleteDialog;
    int                 mFileSz;
    bool                mOpenConversationView;
    int                 mError;
    
    Q_DISABLE_COPY(BTRecvcompletedDialogWidget)
    };



#endif /* BTRECVCOMPLETEDDIALOGWIDGET_H */