34
|
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: stub hbmessagebox
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#include <qstring.h>
|
|
19 |
|
|
20 |
#include "hbmessagebox.h"
|
|
21 |
#include "hbmessageboxdata.h"
|
|
22 |
|
|
23 |
bool HbMessageBoxData::mQuestionReturnValue = false;
|
|
24 |
QString HbMessageBoxData::mLatestTxt = "";
|
|
25 |
int HbMessageBoxData::mWarningCallCount = 0;
|
|
26 |
int HbMessageBoxData::mInformationCallCount = 0;
|
|
27 |
|
|
28 |
bool HbMessageBox::question(const QString &questionText,
|
|
29 |
const QString &primaryButtonText,
|
|
30 |
const QString &secondaryButtonText,
|
|
31 |
QGraphicsWidget *headWidget,
|
|
32 |
QGraphicsScene *scene,
|
|
33 |
QGraphicsItem *parent)
|
|
34 |
{
|
|
35 |
Q_UNUSED(primaryButtonText);
|
|
36 |
Q_UNUSED(secondaryButtonText);
|
|
37 |
Q_UNUSED(headWidget);
|
|
38 |
Q_UNUSED(scene);
|
|
39 |
Q_UNUSED(parent);
|
|
40 |
|
|
41 |
HbMessageBoxData::mLatestTxt = questionText;
|
|
42 |
return HbMessageBoxData::mQuestionReturnValue;
|
|
43 |
}
|
|
44 |
|
|
45 |
void HbMessageBox::information(const QString &informationText,
|
|
46 |
QGraphicsWidget *headWidget,
|
|
47 |
QGraphicsScene *scene,
|
|
48 |
QGraphicsItem *parent)
|
|
49 |
{
|
|
50 |
Q_UNUSED(headWidget);
|
|
51 |
Q_UNUSED(scene);
|
|
52 |
Q_UNUSED(parent);
|
|
53 |
|
|
54 |
HbMessageBoxData::mLatestTxt = informationText;
|
|
55 |
HbMessageBoxData::mInformationCallCount++;
|
|
56 |
}
|
|
57 |
|
|
58 |
void HbMessageBox::warning(const QString &warningText,
|
|
59 |
QGraphicsWidget *headWidget,
|
|
60 |
QGraphicsScene *scene,
|
|
61 |
QGraphicsItem *parent)
|
|
62 |
{
|
|
63 |
Q_UNUSED(headWidget);
|
|
64 |
Q_UNUSED(scene);
|
|
65 |
Q_UNUSED(parent);
|
|
66 |
|
|
67 |
HbMessageBoxData::mLatestTxt = warningText;
|
|
68 |
HbMessageBoxData::mWarningCallCount++;
|
|
69 |
}
|
|
70 |
|
|
71 |
// end of file
|