--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/inc/screensaverindicatoricon.h Thu Dec 17 08:46:04 2009 +0200
@@ -0,0 +1,96 @@
+/*
+* Copyright (c) 2003 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"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: CScreensaverIndicatorIcon declaration.
+*
+*/
+
+
+
+#ifndef C_SCREENSAVERINDICATORICON_H
+#define C_SCREENSAVERINDICATORICON_H
+
+#include "screensaverindicator.h"
+
+/**
+* Simple icon indicator. Displays icon, but no other information.
+*/
+class CScreensaverIndicatorIcon : public CScreensaverIndicator
+ {
+public:
+
+ /**
+ * Destructor
+ */
+ ~CScreensaverIndicatorIcon();
+
+ /**
+ * Draw the indicator. it should be implemented by the derived class
+ */
+ virtual void Draw(CWindowGc& aGc) const;
+
+ /**
+ * two-phased constructor
+ *
+ * @param aReader the resource read of the STRUCT
+ * SCREENSAVER_PARAMETERS_ARRAY defined by ourself
+ * @param aBgColor the background color of display screen
+ * @param aTextColor the text color
+ */
+ virtual void ConstructL(TResourceReader &aReader, TUint32 aBgColor, TUint aTextColor);
+
+ /**
+ * Set the parameters of drawing
+ *
+ * @param aCorner the position of the lefttop of the indicator
+ * @param aParentRect
+ */
+ virtual void SetupDrawingParameters(const TPoint &aCorner, const TRect& aParentRect);
+
+ /**
+ * Check if indicator is visible or not
+ *
+ * @return TBool
+ */
+ virtual TBool CheckVisibilityConditions() const;
+
+ /**
+ * Get the payload through the property
+ *
+ * @param aPayload the reference to the payload
+ */
+ virtual void Payload(TIndicatorPayload& aPayload) const;
+
+ /**
+ * Set the property through the payload
+ *
+ * @param aPayload
+ */
+ virtual void SetPayload(const TIndicatorPayload& aPayload);
+
+ /**
+ * Sets icon position and size
+ */
+ virtual void SetIconLayout(TAknLayoutRect& aLayout, TInt aX = -1);
+
+private:
+
+ /**
+ * The icon will be displayer
+ *
+ * Owned
+ */
+ CGulIcon* iIcon;
+ };
+
+#endif // C_SCREENSAVERINDICATORICON_H