appinstaller/AppinstUi/sifuidevicedialogplugin/inc/sifuidialoggrantcapabilitiescontent.h
equal
deleted
inserted
replaced
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: Content widget for grant capabilities dialog in SifUi |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef SIFUIDIALOGGRANTCAPABILITIESCONTENT_H |
|
19 #define SIFUIDIALOGGRANTCAPABILITIESCONTENT_H |
|
20 |
|
21 #include <HbWidget> |
|
22 |
|
23 |
|
24 /** |
|
25 * Content widget for SifUiDialogGrantCapabilities dialog. |
|
26 */ |
|
27 class SifUiDialogGrantCapabilitiesContent : public HbWidget |
|
28 { |
|
29 Q_OBJECT |
|
30 |
|
31 public: // constructor and destructor |
|
32 SifUiDialogGrantCapabilitiesContent(const QString &applicationName, |
|
33 const QVariant &capabilities, QGraphicsItem *parent = 0); |
|
34 virtual ~SifUiDialogGrantCapabilitiesContent(); |
|
35 |
|
36 signals: |
|
37 void accepted(); |
|
38 void rejected(); |
|
39 |
|
40 private slots: |
|
41 void viewDetails(); |
|
42 |
|
43 private: // new functions |
|
44 void setCapabilities(const QVariant &capabilities); |
|
45 #ifdef Q_OS_SYMBIAN |
|
46 void setCapabilitiesSymbianL( const TDesC8 &aBuf ); |
|
47 QString capabilityName( const TCapability aCapability ); |
|
48 #endif // Q_OS_SYMBIAN |
|
49 |
|
50 private: // data |
|
51 QStringList mCapabilities; |
|
52 bool mIsCapabilitiesValid; |
|
53 }; |
|
54 |
|
55 #endif // SIFUIDIALOGGRANTCAPABILITIESCONTENT_H |
|