--- a/phoneuis/bubblemanager2/bubblecore/src/bubbleutils.h Mon May 03 12:31:11 2010 +0300
+++ b/phoneuis/bubblemanager2/bubblecore/src/bubbleutils.h Fri May 14 15:51:57 2010 +0300
@@ -23,29 +23,57 @@
class BubbleHeader;
class BubbleCallIndicator;
class HbIconItem;
-class BubbleStyleOption;
-class HbPushButton;
+class BubbleButton;
class HbAction;
+class HbTextItem;
class BubbleUtils
{
public:
static void setCallHeaderTexts3Lines(
const BubbleHeader& header,
- BubbleStyleOption& option );
+ HbTextItem& textLine1,
+ HbTextItem& textLine2,
+ HbTextItem& textLine3,
+ int& cliLineNumber,
+ int& timerLineNumber);
static void setCallHeaderTexts2Lines(
const BubbleHeader& header,
- BubbleStyleOption& option );
+ HbTextItem& textLine1,
+ HbTextItem& textLine2,
+ int& cliLineNumber,
+ int& timerLineNumber);
static bool compareHeaders(
const BubbleHeader* header1,
- const BubbleHeader* header2 );
+ const BubbleHeader* header2);
+
+ static void setButtonStyleForAction(
+ BubbleButton& button,
+ const HbAction& action);
+
+ static void setCallStatusIcon(
+ int callState,
+ int callFlags,
+ HbIconItem& icon);
- static QString stylePluginNameWithPath(const QString& pluginName);
+ static void setNumberTypeIcon(
+ int callState,
+ int callFlags,
+ HbIconItem& icon);
- static void setButtonStyleForAction(HbPushButton& button,
- const HbAction& action);
+ static void setCipheringIcon(
+ int callState,
+ int callFlags,
+ HbIconItem& icon);
+
+private:
+ static void setText(
+ HbTextItem& item,
+ const QString& text,
+ Qt::TextElideMode clip);
+
};
#endif /* BUBBLEUTILS_H_ */