|
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 #include <QDebug> |
|
18 #include <smcmockclassincludes.h> |
|
19 #include <hbinstance.h> |
|
20 |
|
21 // ============================ MEMBER FUNCTIONS =============================== |
|
22 |
|
23 // ----------------------------------------------------------------------------- |
|
24 // HbInstance::instance |
|
25 // ----------------------------------------------------------------------------- |
|
26 // |
|
27 HbInstance * HbInstance::instance( ) |
|
28 { |
|
29 SMC_MOCK_METHOD0( HbInstance * ) |
|
30 } |
|
31 |
|
32 |
|
33 // ----------------------------------------------------------------------------- |
|
34 // HbInstance::allMainWindows |
|
35 // ----------------------------------------------------------------------------- |
|
36 // |
|
37 QList <HbMainWindow * > HbInstance::allMainWindows( ) const |
|
38 { |
|
39 SMC_MOCK_METHOD0( QList <HbMainWindow * > ) |
|
40 } |
|
41 |
|
42 |
|
43 // ----------------------------------------------------------------------------- |
|
44 // HbInstance::orientation |
|
45 // ----------------------------------------------------------------------------- |
|
46 // |
|
47 Qt::Orientation HbInstance::orientation( ) const |
|
48 { |
|
49 SMC_MOCK_METHOD0( Qt::Orientation ) |
|
50 } |
|
51 |
|
52 |
|
53 // ----------------------------------------------------------------------------- |
|
54 // HbInstance::setOrientation |
|
55 // ----------------------------------------------------------------------------- |
|
56 // |
|
57 void HbInstance::setOrientation( |
|
58 Qt::Orientation orientation, |
|
59 bool animate ) |
|
60 { |
|
61 SMC_MOCK_METHOD2( void, Qt::Orientation, orientation, |
|
62 bool, animate ) |
|
63 } |
|
64 |
|
65 |
|
66 // ----------------------------------------------------------------------------- |
|
67 // HbInstance::style |
|
68 // ----------------------------------------------------------------------------- |
|
69 // |
|
70 HbStyle * HbInstance::style( ) const |
|
71 { |
|
72 SMC_MOCK_METHOD0( HbStyle * ) |
|
73 } |
|
74 |
|
75 |
|
76 // ----------------------------------------------------------------------------- |
|
77 // HbInstance::theme |
|
78 // ----------------------------------------------------------------------------- |
|
79 // |
|
80 HbTheme * HbInstance::theme( ) const |
|
81 { |
|
82 SMC_MOCK_METHOD0( HbTheme * ) |
|
83 } |
|
84 |
|
85 |
|
86 // ----------------------------------------------------------------------------- |
|
87 // HbInstance::typefaceInfo |
|
88 // ----------------------------------------------------------------------------- |
|
89 // |
|
90 HbTypefaceInfo * HbInstance::typefaceInfo( ) const |
|
91 { |
|
92 SMC_MOCK_METHOD0( HbTypefaceInfo * ) |
|
93 } |
|
94 |
|
95 |
|
96 // ----------------------------------------------------------------------------- |
|
97 // HbInstance::addLibraryPath |
|
98 // ----------------------------------------------------------------------------- |
|
99 // |
|
100 void HbInstance::addLibraryPath( |
|
101 const QString & path ) |
|
102 { |
|
103 SMC_MOCK_METHOD1( void, const QString &, path ) |
|
104 } |
|
105 |
|
106 |
|
107 // ----------------------------------------------------------------------------- |
|
108 // HbInstance::removeLibraryPath |
|
109 // ----------------------------------------------------------------------------- |
|
110 // |
|
111 void HbInstance::removeLibraryPath( |
|
112 const QString & path ) |
|
113 { |
|
114 SMC_MOCK_METHOD1( void, const QString &, path ) |
|
115 } |
|
116 |
|
117 |
|
118 // ----------------------------------------------------------------------------- |
|
119 // HbInstance::libraryPaths |
|
120 // ----------------------------------------------------------------------------- |
|
121 // |
|
122 QStringList HbInstance::libraryPaths( ) const |
|
123 { |
|
124 SMC_MOCK_METHOD0( QStringList ) |
|
125 } |
|
126 |
|
127 |
|
128 // ----------------------------------------------------------------------------- |
|
129 // HbInstance::setLibraryPaths |
|
130 // ----------------------------------------------------------------------------- |
|
131 // |
|
132 void HbInstance::setLibraryPaths( |
|
133 const QStringList & paths ) |
|
134 { |
|
135 SMC_MOCK_METHOD1( void, const QStringList &, paths ) |
|
136 } |
|
137 |
|
138 |