60
|
1 |
/*
|
|
2 |
* Copyright (c) 2008-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: glximgvwrmetadatadialog.h
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
#ifndef GLXIMGVWRMETADATADIALOG_H_
|
|
21 |
#define GLXIMGVWRMETADATADIALOG_H_
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
// SYSTEM INCLUDES
|
|
26 |
#include <AknDialog.h>
|
|
27 |
|
|
28 |
#include <glximgvwrmetadatacontainer.h>
|
|
29 |
|
|
30 |
|
|
31 |
// CLASS DECLARATION
|
|
32 |
/**
|
|
33 |
* CGlxImgVwrMetadataDialog
|
|
34 |
*
|
|
35 |
* Image Viewer Metadata dialog implementation
|
|
36 |
*/
|
|
37 |
class CGlxImgVwrMetadataDialog : public CAknDialog
|
|
38 |
{
|
|
39 |
public:
|
|
40 |
// Constructors and destructor
|
|
41 |
|
|
42 |
/**
|
|
43 |
* Two-phased constructor.
|
|
44 |
*
|
|
45 |
* @param aURI uri or file name of item
|
|
46 |
*/
|
|
47 |
IMPORT_C static CGlxImgVwrMetadataDialog* NewL(const TDesC& aUri);
|
|
48 |
|
|
49 |
/**
|
|
50 |
* Destructor.
|
|
51 |
*/
|
|
52 |
virtual ~CGlxImgVwrMetadataDialog();
|
|
53 |
|
|
54 |
private:
|
|
55 |
/**
|
|
56 |
* Constructor.
|
|
57 |
* @param aURI uri or file name of item
|
|
58 |
*/
|
|
59 |
CGlxImgVwrMetadataDialog(const TDesC& aUri);
|
|
60 |
|
|
61 |
public:
|
|
62 |
// Functions from base classes
|
|
63 |
|
|
64 |
/**
|
|
65 |
* Initializes the dialog and calls CAknDialog's
|
|
66 |
* ExecuteLD()
|
|
67 |
* This method need to be called to execute the dialog.
|
|
68 |
* After exiting the dialog gets automatically destroyed
|
|
69 |
*
|
|
70 |
* @return TInt ID value of the button that closed the dialog.
|
|
71 |
*/
|
|
72 |
IMPORT_C TInt ExecuteLD();
|
|
73 |
|
|
74 |
protected:
|
|
75 |
/**
|
|
76 |
* From MEikCommandObserver Prosesses menucommands
|
|
77 |
*
|
|
78 |
* @param aCommandId Commant value defined in resources.
|
|
79 |
*/
|
|
80 |
void ProcessCommandL(TInt aCommandId);
|
|
81 |
|
|
82 |
private:
|
|
83 |
/**
|
|
84 |
* Symbian 2nd phase constructor.
|
|
85 |
*/
|
|
86 |
void ConstructL();
|
|
87 |
|
|
88 |
/**
|
|
89 |
* Initalise the resource
|
|
90 |
*/
|
|
91 |
void InitResourceL();
|
|
92 |
|
|
93 |
private:
|
|
94 |
/**
|
|
95 |
* SetTitleL
|
|
96 |
* Sets title for view
|
|
97 |
* @param aTitleText title of view to be set
|
|
98 |
*/
|
|
99 |
void SetTitleL(const TDesC& aTitleText);
|
|
100 |
/**
|
|
101 |
* SetPreviousTitleL
|
|
102 |
* Sets title of previous view
|
|
103 |
*/
|
|
104 |
void SetPreviousTitleL();
|
|
105 |
|
|
106 |
/**
|
|
107 |
* Sets the dialog toolbar visibility
|
|
108 |
* @param aVisible - ETrue for visible; EFalse otherwise.
|
|
109 |
*/
|
|
110 |
void SetDetailsDlgToolbarVisibility(TBool aVisible);
|
|
111 |
|
|
112 |
public:
|
|
113 |
// from MEikDialogPageObserver
|
|
114 |
/**
|
|
115 |
* @ref MEikDialogPageObserver::CreateCustomControlL
|
|
116 |
*/
|
|
117 |
SEikControlInfo CreateCustomControlL(TInt aControlType);
|
|
118 |
|
|
119 |
public:
|
|
120 |
/**
|
|
121 |
* Handles the toolbar visiblity to be in sync with the calling app
|
|
122 |
* @param aVisible - ETrue for visible; EFalse otherwise.
|
|
123 |
*/
|
|
124 |
void HandleToolbarResetting(TBool aVisible);
|
|
125 |
|
|
126 |
private:
|
|
127 |
//data
|
|
128 |
TInt iResourceOffset;
|
|
129 |
TBool iStatusPaneAvailable;
|
|
130 |
HBufC* iPreviousTitle;
|
|
131 |
const TDesC& iUri;
|
|
132 |
CGlxImgVwrMetadataContainer* iContainer;
|
|
133 |
};
|
|
134 |
|
|
135 |
|
|
136 |
#endif /* GLXIMGVWRMETADATADIALOG_H_ */
|