equal
deleted
inserted
replaced
36 HbDeviceDialogsContainer::Dialog::Dialog() |
36 HbDeviceDialogsContainer::Dialog::Dialog() |
37 { |
37 { |
38 mId = InvalidId; |
38 mId = InvalidId; |
39 mPtr = 0; |
39 mPtr = 0; |
40 mFlags = NoFlags; |
40 mFlags = NoFlags; |
41 for(int i = 0; i < NumVariables; i++) { |
|
42 mVariables[i] = 0; |
|
43 } |
|
44 mIndex = InvalidIndex; |
41 mIndex = InvalidIndex; |
45 #ifndef QT_NO_DEBUG |
42 #ifndef QT_NO_DEBUG |
46 mContainer = 0; |
43 mContainer = 0; |
47 #endif // QT_NO_DEBUG |
44 #endif // QT_NO_DEBUG |
48 } |
45 } |
186 return dialog; |
183 return dialog; |
187 } |
184 } |
188 |
185 |
189 // Get next dialog with matching variable value |
186 // Get next dialog with matching variable value |
190 HbDeviceDialogsContainer::Dialog &HbDeviceDialogsContainer::next( |
187 HbDeviceDialogsContainer::Dialog &HbDeviceDialogsContainer::next( |
191 const Dialog &from, Dialog::Variable variable, quintptr value) |
188 const Dialog &from, Dialog::Variable variable, const QVariant &value) |
192 { |
189 { |
193 // With invalid from start from beginning, otherwise start from next |
190 // With invalid from start from beginning, otherwise start from next |
194 int i = from.isValid() ? from.mIndex + 1 : 0; |
191 int i = from.isValid() ? from.mIndex + 1 : 0; |
195 int count = mDialogs.count(); |
192 int count = mDialogs.count(); |
196 if (i >= count) { // at the end |
193 if (i >= count) { // at the end |