equal
deleted
inserted
replaced
|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CNTORIENTATIONHELPER_H_ |
|
19 #define CNTORIENTATIONHELPER_H_ |
|
20 |
|
21 #include "cntimageutilityglobal.h" |
|
22 |
|
23 #include <QObject> |
|
24 #include <xqsettingskey.h> |
|
25 #include <xqsettingsmanager.h> |
|
26 |
|
27 class CNTIMAGEUTILITYLIB_EXPORT CntOrientationHelper : public QObject |
|
28 { |
|
29 Q_OBJECT |
|
30 public: |
|
31 CntOrientationHelper( QObject* parent = NULL ); |
|
32 ~CntOrientationHelper(); |
|
33 |
|
34 Qt::Orientation& orientation(); |
|
35 |
|
36 signals: |
|
37 void orientationChanged( Qt::Orientation orientation ); |
|
38 |
|
39 private slots: |
|
40 void emitOrientationChanged( const XQSettingsKey& key, const QVariant& value ); |
|
41 |
|
42 private: |
|
43 XQSettingsManager* mSettings; // own |
|
44 XQSettingsKey* mOrientationKey; // own |
|
45 Qt::Orientation mOrientation; |
|
46 |
|
47 friend class TestCntOrientationHelper; |
|
48 }; |
|
49 #endif /* CNTORIENTATIONHELPER_H_ */ |