37
|
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 |
*
|
|
15 |
* Description:
|
|
16 |
* The header file of filemanager messagebox
|
|
17 |
*/
|
|
18 |
|
|
19 |
#ifndef FMMESSAGEBOX_H
|
|
20 |
#define FMMESSAGEBOX_H
|
|
21 |
|
|
22 |
#include <QEventLoop>
|
|
23 |
#include <hbmessagebox.h>
|
|
24 |
#include <hbaction.h>
|
|
25 |
|
|
26 |
class FmMessageBox : public QObject
|
|
27 |
{
|
|
28 |
Q_OBJECT
|
|
29 |
public:
|
|
30 |
FmMessageBox()
|
|
31 |
{
|
|
32 |
}
|
|
33 |
~FmMessageBox()
|
|
34 |
{
|
|
35 |
}
|
|
36 |
void information( const QString &informationText,
|
46
|
37 |
HbMessageBox::StandardButtons buttons, bool isBlocking = false );
|
37
|
38 |
|
|
39 |
bool question( const QString &questionText,
|
|
40 |
HbMessageBox::StandardButtons buttons );
|
|
41 |
|
46
|
42 |
void warning( const QString &warningText,
|
|
43 |
HbMessageBox::StandardButtons buttons, bool isBlocking = false );
|
|
44 |
|
37
|
45 |
public slots:
|
|
46 |
void dialogClosed(HbAction *action);
|
|
47 |
private:
|
|
48 |
QEventLoop mEventLoop;
|
|
49 |
bool mRet;
|
|
50 |
};
|
|
51 |
|
|
52 |
#endif
|