bluetoothengine/btnotif/btdevicedialogplugin/inc/btrecvcompleteddialogwidget.h
branchRCL_3
changeset 56 9386f31cc85b
parent 55 613943a21004
child 61 269724087bed
equal deleted inserted replaced
55:613943a21004 56:9386f31cc85b
     1 /*
       
     2 * Copyright (c) 2009 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:  BtDeviceDialogWidget class declaration.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef BTRECVCOMPLETEDDIALOGWIDGET_H_
       
    20 #define BTRECVCOMPLETEDDIALOGWIDGET_H_
       
    21 
       
    22 #include <QObject>
       
    23 #include <QVariantMap>
       
    24 #include <hbdialog.h>
       
    25 #include <hbdevicedialoginterface.h>
       
    26 #include <hbpopup.h>
       
    27 #include <hbdocumentloader.h>
       
    28 #include <qstandarditemmodel.h>
       
    29 #include <hblabel.h>
       
    30 #include <hbaction.h>
       
    31 #include <QRunnable>
       
    32 
       
    33 
       
    34 class CoversationViewServiceStarter : public QRunnable
       
    35     {
       
    36 public:
       
    37     CoversationViewServiceStarter(qint64 conversationId);
       
    38     ~CoversationViewServiceStarter();
       
    39     void run();
       
    40 private:
       
    41     qint64 mCnvId;
       
    42     };
       
    43 
       
    44 
       
    45 class BTRecvcompletedDialogWidget : public QObject, 
       
    46                                 public HbDeviceDialogInterface
       
    47     {
       
    48     Q_OBJECT
       
    49     
       
    50 public:
       
    51     BTRecvcompletedDialogWidget(const QVariantMap &parameters);
       
    52     ~BTRecvcompletedDialogWidget();
       
    53     
       
    54 public: // from HbDeviceDialogInterface
       
    55     bool setDeviceDialogParameters(const QVariantMap &parameters);
       
    56     int deviceDialogError() const;
       
    57     void closeDeviceDialog(bool byClient);
       
    58     HbPopup *deviceDialogWidget() const;
       
    59     virtual QObject *signalSender() const;
       
    60     
       
    61 public slots:
       
    62     void showClicked();
       
    63     void cancelClicked();
       
    64 
       
    65 private:
       
    66     bool constructDialog(const QVariantMap &parameters);
       
    67     
       
    68 signals:
       
    69     void deviceDialogClosed();
       
    70     void deviceDialogData(QVariantMap data);
       
    71     
       
    72 private:
       
    73     HbDocumentLoader    *mLoader;
       
    74     QStandardItemModel  *mContentItemModel;
       
    75     HbLabel             *mHeading;
       
    76     HbLabel             *mFileName;
       
    77     HbLabel             *mFileSize;
       
    78     HbLabel             *mFileCount;
       
    79     HbAction            *mShow;
       
    80     HbAction            *mCancel;
       
    81     HbDialog            *mDialog;
       
    82     int                 mFileSz;
       
    83     
       
    84     Q_DISABLE_COPY(BTRecvcompletedDialogWidget)
       
    85     };
       
    86 
       
    87 
       
    88 
       
    89 #endif /* BTRECVCOMPLETEDDIALOGWIDGET_H_ */