21 #include <QString> |
21 #include <QString> |
22 |
22 |
23 class BubbleHeader; |
23 class BubbleHeader; |
24 class BubbleCallIndicator; |
24 class BubbleCallIndicator; |
25 class HbIconItem; |
25 class HbIconItem; |
26 class BubbleStyleOption; |
26 class BubbleButton; |
27 class HbPushButton; |
|
28 class HbAction; |
27 class HbAction; |
|
28 class HbTextItem; |
29 |
29 |
30 class BubbleUtils |
30 class BubbleUtils |
31 { |
31 { |
32 public: |
32 public: |
33 static void setCallHeaderTexts3Lines( |
33 static void setCallHeaderTexts3Lines( |
34 const BubbleHeader& header, |
34 const BubbleHeader& header, |
35 BubbleStyleOption& option ); |
35 HbTextItem& textLine1, |
|
36 HbTextItem& textLine2, |
|
37 HbTextItem& textLine3, |
|
38 int& cliLineNumber, |
|
39 int& timerLineNumber); |
36 |
40 |
37 static void setCallHeaderTexts2Lines( |
41 static void setCallHeaderTexts2Lines( |
38 const BubbleHeader& header, |
42 const BubbleHeader& header, |
39 BubbleStyleOption& option ); |
43 HbTextItem& textLine1, |
|
44 HbTextItem& textLine2, |
|
45 int& cliLineNumber, |
|
46 int& timerLineNumber); |
40 |
47 |
41 static bool compareHeaders( |
48 static bool compareHeaders( |
42 const BubbleHeader* header1, |
49 const BubbleHeader* header1, |
43 const BubbleHeader* header2 ); |
50 const BubbleHeader* header2); |
44 |
51 |
45 static QString stylePluginNameWithPath(const QString& pluginName); |
52 static void setButtonStyleForAction( |
|
53 BubbleButton& button, |
|
54 const HbAction& action); |
46 |
55 |
47 static void setButtonStyleForAction(HbPushButton& button, |
56 static void setCallStatusIcon( |
48 const HbAction& action); |
57 int callState, |
|
58 int callFlags, |
|
59 HbIconItem& icon); |
|
60 |
|
61 static void setNumberTypeIcon( |
|
62 int callState, |
|
63 int callFlags, |
|
64 HbIconItem& icon); |
|
65 |
|
66 static void setCipheringIcon( |
|
67 int callState, |
|
68 int callFlags, |
|
69 HbIconItem& icon); |
|
70 |
|
71 private: |
|
72 static void setText( |
|
73 HbTextItem& item, |
|
74 const QString& text, |
|
75 Qt::TextElideMode clip); |
|
76 |
49 }; |
77 }; |
50 |
78 |
51 #endif /* BUBBLEUTILS_H_ */ |
79 #endif /* BUBBLEUTILS_H_ */ |