screensaver/snsrutils/inc/snsrlabel.h
changeset 97 66b5fe3c07fd
parent 62 341166945d65
--- a/screensaver/snsrutils/inc/snsrlabel.h	Mon Sep 27 11:52:00 2010 +0300
+++ b/screensaver/snsrutils/inc/snsrlabel.h	Wed Oct 06 16:06:24 2010 +0300
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2009 - 2010 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
@@ -32,10 +32,22 @@
     
 public:
     
+    enum TextColorType
+    {
+        ThemedColorForActiveMode,
+        FixedColorForPowerSaveMode // = Qt::white
+    };
+    
+public:
+    
     SnsrLabel(QGraphicsItem *parent = 0);
     SnsrLabel(const QString &displayText, QGraphicsItem *parent = 0);
     ~SnsrLabel();
     
+public:
+    
+    void setTextColorType(const TextColorType &colorType);
+    
 protected:
 
     virtual void changeEvent(QEvent *event);
@@ -43,6 +55,10 @@
 private:
 
     void setThemedTextColor();
+ 
+private:
+    
+    TextColorType mTextColorType;
 
     SCREENSAVER_TEST_FRIEND_CLASS(T_SnsrUtils)