63
|
1 |
/*
|
|
2 |
* Copyright (c) 2010 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: Base class for advanced security settings views
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef ADVSECSETTINGSVIEWBASE_H
|
|
19 |
#define ADVSECSETTINGSVIEWBASE_H
|
|
20 |
|
|
21 |
#include <cpbasesettingview.h> // CpBaseSettingView
|
|
22 |
|
|
23 |
class HbMenu;
|
|
24 |
|
|
25 |
|
|
26 |
/**
|
|
27 |
* Base class for advanced security settings views.
|
|
28 |
*/
|
|
29 |
class AdvSecSettingsViewBase : public CpBaseSettingView
|
|
30 |
{
|
|
31 |
Q_OBJECT
|
|
32 |
|
|
33 |
public: // constructor and destructor
|
|
34 |
explicit AdvSecSettingsViewBase(QGraphicsWidget *widget = 0,
|
|
35 |
QGraphicsItem *parent = 0);
|
|
36 |
virtual ~AdvSecSettingsViewBase();
|
|
37 |
|
|
38 |
public slots:
|
|
39 |
void displayPreviousView();
|
|
40 |
|
|
41 |
protected slots:
|
|
42 |
virtual void displayError(int error);
|
|
43 |
|
|
44 |
public: // new functions
|
|
45 |
void displayView(AdvSecSettingsViewBase *view);
|
|
46 |
bool hasPreviousView() const;
|
|
47 |
void setDeleteOnClose(bool deleteOnClose);
|
|
48 |
|
|
49 |
protected: // new functions
|
|
50 |
void clearItemSpecificMenu();
|
|
51 |
void addItemSpecificMenuAction(const QString &text, const QObject *receiver,
|
|
52 |
const char *member);
|
|
53 |
void displayItemSpecificMenu(const QPointF &position);
|
|
54 |
void displayQuestionNote(const QString &text, const QObject *receiver,
|
|
55 |
const char *accepedMember);
|
|
56 |
|
|
57 |
private: // data
|
|
58 |
HbView *mPreviousView; // not owned
|
|
59 |
HbMenu *mItemSpecificMenu;
|
|
60 |
bool mDeleteOnClose;
|
|
61 |
};
|
|
62 |
|
|
63 |
#endif // ADVSECSETTINGSVIEWBASE_H
|