23 // User includes |
23 // User includes |
24 #include "clockcityselectionlist.h" |
24 #include "clockcityselectionlist.h" |
25 #include "clockcityselectionlist_p.h" |
25 #include "clockcityselectionlist_p.h" |
26 #include "clockdatatypes.h" |
26 #include "clockdatatypes.h" |
27 #include "timezoneclient.h" |
27 #include "timezoneclient.h" |
|
28 #include "OstTraceDefinitions.h" |
|
29 #ifdef OST_TRACE_COMPILER_IN_USE |
|
30 #include "clockcityselectionlistTraces.h" |
|
31 #endif |
|
32 |
28 |
33 |
29 /*! |
34 /*! |
30 \class ClockCitySelectionList |
35 \class ClockCitySelectionList |
31 |
36 |
32 TODO: Write a complete description of the object. Mention about API usage |
37 TODO: Write a complete description of the object. Mention about API usage |
51 ClockCitySelectionList::ClockCitySelectionList( |
56 ClockCitySelectionList::ClockCitySelectionList( |
52 TimezoneClient *client, QObject *parent) |
57 TimezoneClient *client, QObject *parent) |
53 :QObject(parent), |
58 :QObject(parent), |
54 d_ptr(new ClockCitySelectionListPrivate(client, this)) |
59 d_ptr(new ClockCitySelectionListPrivate(client, this)) |
55 { |
60 { |
|
61 OstTraceFunctionEntry0( CLOCKCITYSELECTIONLIST_CLOCKCITYSELECTIONLIST_ENTRY ); |
56 // Load the translation file and install the editor specific translator |
62 // Load the translation file and install the editor specific translator |
57 mTranslator = new HbTranslator("clockcityselectionlist"); |
63 mTranslator = new HbTranslator("clockcityselectionlist"); |
58 mTranslator->loadCommon(); |
64 mTranslator->loadCommon(); |
|
65 OstTraceFunctionExit0( CLOCKCITYSELECTIONLIST_CLOCKCITYSELECTIONLIST_EXIT ); |
59 } |
66 } |
60 |
67 |
61 /*! |
68 /*! |
62 Default constructor. |
69 Default constructor. |
63 |
70 |
65 */ |
72 */ |
66 ClockCitySelectionList::ClockCitySelectionList(QObject *parent) |
73 ClockCitySelectionList::ClockCitySelectionList(QObject *parent) |
67 :QObject(parent), |
74 :QObject(parent), |
68 d_ptr(new ClockCitySelectionListPrivate(0, this)) |
75 d_ptr(new ClockCitySelectionListPrivate(0, this)) |
69 { |
76 { |
|
77 OstTraceFunctionEntry0( DUP1_CLOCKCITYSELECTIONLIST_CLOCKCITYSELECTIONLIST_ENTRY ); |
70 // Load the translation file and install the editor specific translator |
78 // Load the translation file and install the editor specific translator |
71 mTranslator = new HbTranslator("clockcityselectionlist"); |
79 mTranslator = new HbTranslator("clockcityselectionlist"); |
72 mTranslator->loadCommon(); |
80 mTranslator->loadCommon(); |
|
81 OstTraceFunctionExit0( DUP1_CLOCKCITYSELECTIONLIST_CLOCKCITYSELECTIONLIST_EXIT ); |
73 } |
82 } |
74 |
83 |
75 ClockCitySelectionList::~ClockCitySelectionList() |
84 ClockCitySelectionList::~ClockCitySelectionList() |
76 { |
85 { |
|
86 OstTraceFunctionEntry0( DUP2_CLOCKCITYSELECTIONLIST_CLOCKCITYSELECTIONLIST_ENTRY ); |
77 // Remove the translator |
87 // Remove the translator |
78 if (mTranslator) { |
88 if (mTranslator) { |
79 delete mTranslator; |
89 delete mTranslator; |
80 mTranslator = 0; |
90 mTranslator = 0; |
81 } |
91 } |
|
92 OstTraceFunctionExit0( DUP2_CLOCKCITYSELECTIONLIST_CLOCKCITYSELECTIONLIST_EXIT ); |
82 } |
93 } |
83 |
94 |
84 /*! |
95 /*! |
85 Shows the city selection list. Connect to signal citySelected before calling this function |
96 Shows the city selection list. Connect to signal citySelected before calling this function |
86 to make sure that the notification is reached upon selecting a city. |
97 to make sure that the notification is reached upon selecting a city. |
87 */ |
98 */ |
88 void ClockCitySelectionList::showCityList() |
99 void ClockCitySelectionList::showCityList() |
89 { |
100 { |
|
101 OstTraceFunctionEntry0( CLOCKCITYSELECTIONLIST_SHOWCITYLIST_ENTRY ); |
90 d_ptr->showCityList(); |
102 d_ptr->showCityList(); |
|
103 OstTraceFunctionExit0( CLOCKCITYSELECTIONLIST_SHOWCITYLIST_EXIT ); |
91 } |
104 } |
92 |
105 |
93 /*! |
106 /*! |
94 Closes the city list selection list. This is a convenient API for the client to close the list |
107 Closes the city list selection list. This is a convenient API for the client to close the list |
95 if required. This would emit the citySelected signal without any selected city information. |
108 if required. This would emit the citySelected signal without any selected city information. |
96 */ |
109 */ |
97 void ClockCitySelectionList::closeCityList() |
110 void ClockCitySelectionList::closeCityList() |
98 { |
111 { |
|
112 OstTraceFunctionEntry0( CLOCKCITYSELECTIONLIST_CLOSECITYLIST_ENTRY ); |
99 d_ptr->closeCityList(); |
113 d_ptr->closeCityList(); |
|
114 OstTraceFunctionExit0( CLOCKCITYSELECTIONLIST_CLOSECITYLIST_EXIT ); |
100 } |
115 } |
101 |
116 |
102 // End of file --Don't remove this. |
117 // End of file --Don't remove this. |