API review: QRegExp::numCaptures() -> QRegExp::captureCount()
[qt-netbsd.git] / util / s60pixelmetrics / pm_mapperapp.h
blobcd119bce64c49e806404e7f473cafb4c65eaff70
1 /****************************************************************************
2 **
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4 ** All rights reserved.
5 ** Contact: Nokia Corporation (qt-info@nokia.com)
6 **
7 ** This file is part of the utility applications of the Qt Toolkit.
8 **
9 ** $QT_BEGIN_LICENSE:LGPL$
10 ** No Commercial Usage
11 ** This file contains pre-release code and may not be distributed.
12 ** You may use this file in accordance with the terms and conditions
13 ** contained in the Technology Preview License Agreement accompanying
14 ** this package.
16 ** GNU Lesser General Public License Usage
17 ** Alternatively, this file may be used under the terms of the GNU Lesser
18 ** General Public License version 2.1 as published by the Free Software
19 ** Foundation and appearing in the file LICENSE.LGPL included in the
20 ** packaging of this file. Please review the following information to
21 ** ensure the GNU Lesser General Public License version 2.1 requirements
22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24 ** In addition, as a special exception, Nokia gives you certain additional
25 ** rights. These rights are described in the Nokia Qt LGPL Exception
26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
28 ** If you have questions regarding the use of this file, please contact
29 ** Nokia at qt-info@nokia.com.
38 ** $QT_END_LICENSE$
40 ****************************************************************************/
42 #ifndef PMMAPPERAPP_H
43 #define PMMAPPERAPP_H
45 // INCLUDES
46 #include <eikapp.h>
47 #include <eikdoc.h>
48 #include <e32std.h>
49 #include <aknViewAppUi.h>
51 // CONSTANTS
52 const TUid KUidPMMapperApplication = { 0x2002121F };
55 // FORWARD DECLARATIONS
56 class CPixelMetricsMapperView;
57 class MAknsSkinInstance;
59 // CLASS DECLARATION
60 /**
61 * CPixelMetricsMapperDocument
63 class CPixelMetricsMapperDocument : public CEikDocument
65 public: // Constructors and destructor
67 /**
68 * Symbian 2nd phase constructor.
70 void ConstructL();
72 /**
73 * Constructor.
75 CPixelMetricsMapperDocument( CEikApplication& aApp )
76 : CEikDocument( aApp ) {}
78 /**
79 * Destructor.
81 ~CPixelMetricsMapperDocument(){}
83 public: // Functions from base classes
85 /**
86 * From CEikDocument.
88 CFileStore* OpenFileL(
89 TBool /*aDoOpen*/,
90 const TDesC& /*aFilename*/,
91 RFs& /*aFs*/ )
93 return NULL;
96 private: // Functions from base classes
98 /**
99 * From CEikDocument.
101 CEikAppUi* CreateAppUiL();
105 * CPixelMetricsMapperAppUi
107 class CPixelMetricsMapperAppUi : public CAknViewAppUi
109 public: // Constructors and destructor
112 * Constructor.
114 CPixelMetricsMapperAppUi();
117 * Symbian 2nd phase constructor.
119 void ConstructL();
122 * Destructor.
124 ~CPixelMetricsMapperAppUi();
126 public:
127 void DoAutoOperationL();
129 TBool ReadyForAutoOp() const;
132 private: // Functions from base classes
135 * From CEikAppUi.
137 void HandleCommandL(TInt aCommand);
140 * From CEikAppUi.
142 virtual TKeyResponse HandleKeyEventL(
143 const TKeyEvent& aKeyEvent,
144 TEventCode aType );
146 private:
149 * Shows text given.
151 void ShowL( const TDesC& aText, TBool& aLast, const TBool& aFileOutput = EFalse );
152 void ShowSingleValueL(TInt& aPixelMetric, TInt& aValue, TBool& aLast);
153 void ClearL();
154 void CreateHeaderFileL() const;
156 TFileName CreateLayoutNameL(TFileText& aFileHandle) const;
158 private: // Data
160 // Test view.
161 CPixelMetricsMapperView* iView;
163 CEikDialog* iDialog;
165 TBool iFileOutputOn;
167 CFbsBitmap* icon;
168 CFbsBitmap* iconMask;
170 TBool iAutoMode;
171 TBool iMode;
177 * CPixelMetricsMapperApplication
179 class CPixelMetricsMapperApplication : public CEikApplication
181 private: // Functions from base classes
184 * From CApaApplication.
186 CApaDocument* CreateDocumentL();
189 * From CApaApplication.
191 TUid AppDllUid() const;
195 #endif // PMMAPPERAPP_H
198 // End of File