calendarui/regionalplugins/lunarVietnamese/inc/calenlunarvietnameseplugin.h
branchRCL_3
changeset 30 bd7edf625bdd
parent 29 12af337248b1
--- a/calendarui/regionalplugins/lunarVietnamese/inc/calenlunarvietnameseplugin.h	Tue Aug 31 15:13:43 2010 +0300
+++ b/calendarui/regionalplugins/lunarVietnamese/inc/calenlunarvietnameseplugin.h	Wed Sep 01 12:32:31 2010 +0100
@@ -17,24 +17,20 @@
 
 
  
-#ifndef __CALENLUNARVIETNAMESEPLUGIN_H__
-#define __CALENLUNARVIETNAMESEPLUGIN_H__
+#ifndef __CALENLUNARPLUGIN_H__
+#define __CALENLUNARPLUGIN_H__
 
 //SYSTEM INCLUDES
 #include <e32base.h>
 #include <ecom.h>
 #include <ConeResLoader.h> 
 
-#include <QtGui>
-
-#include <hblabel.h>
-
 //CALENDAR INCLUDES
 #include <calencommandhandler.h>
 #include <calennotificationhandler.h>
 #include <calenservices.h>
 #include <eiklabel.h>
-#include <COECNTRL.H>
+#include <coecntrl.h>
 #include <calencustomisation.h>
 
 #include "CalendarVariant.hrh"
@@ -42,25 +38,21 @@
 #include "calendarui_debug.h"
 
 //FORWARD DECLARE
-class QString;
-
-class HbWidget;
-class HbMenu;
-
 class CEikonEnv;
 class CCalenLunarInfoProvider;
 class CCalenLunarLocalizer;
 class CCalenLunarLocalizedInfo;
+class CEikLabel;
+class MCalenPreview;
+
+
 
 //CLASS DECLARATION
-class CCalenLunarVietnamesePlugin :public CCalenCustomisation,
-								public MCalenCommandHandler,
-								public MCalenNotificationHandler
-												
+NONSHARABLE_CLASS(CCalenLunarVietnamesePlugin) :public CCalenCustomisation,
+												public MCalenCommandHandler,
+												public MCalenNotificationHandler
 									
 	{
-	
-	
 	public:
 	    
 	    
@@ -72,10 +64,17 @@
 		void ConstructL();
 		
 	public: //From CCalenCustomisation
-		HbWidget* InfobarL( );
-        QString* InfobarTextL();        
+		void GetCustomViewsL(  RPointerArray<CCalenView>& aCustomViewArray );
+		void GetCustomSettingsL( RPointerArray<CAknSettingItem>& aCustomSettingArray );
+        CCoeControl* InfobarL( const TRect& aRect );
+        const TDesC& InfobarL();
+        MCalenPreview* CustomPreviewPaneL( TRect& aRect );
+        CCoeControl* PreviewPaneL(  TRect& aRect );
         MCalenCommandHandler* CommandHandlerL( TInt aCommand );
-        void CustomiseMenu(HbMenu* aHbMenu);
+        void RemoveViewsFromCycle( RArray<TInt>& aViews );
+        TBool CustomiseMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
+        TBool CanBeEnabledDisabled();
+        TAny* CalenCustomisationExtensionL( TUid aExtensionUid );
         
     public:// From MCalenCommandHandler
         TBool HandleCommandL( const TCalenCommand& aCommand );
@@ -85,8 +84,9 @@
         void HandleNotification(const TCalenNotification aNotification );
         
     private:
-        void SetLabelContentL( HbLabel& aLabel );        
-        void FormatExtraRowStringL( HbLabel& aLabel,TBool aTwoLines);
+        void SetLabelContentL( CEikLabel& aLabel ,const TRect& aRect);
+        void SetLabelContentExtraL( CEikLabel& aLabel, TRect& aRect);
+        void FormatExtraRowStringL( CEikLabel& aLabel,TBool aTwoLines);
         void SetLunarLocalizerL();
         void UpdateLocalizerInfoL();
         void ExecuteMessageDialogL( TDesC& aMsgText );
@@ -111,21 +111,19 @@
 		*/
 		CCalenLunarLocalizedInfo* iLocInfo;
 		
-		/**
+    /**
 		* Currently displayed text for extra row
 		*/ 
 		TPtrC iExtraRowText;
 		MCalenServices* iServices;
-		/**
-		* This text object is used for hitchcock
-		* infobar in Month/Day/Week.
-		*/
-		HBufC* iInfoBarText;
-		
-		/**
-		* This control is used in view.
-		*/
-	    HbLabel* iLabelControl;
+	    CEikLabel* iLabelControl;
+	    
+	    /**
+        * This text object is used for hitchcock
+        * infobar in Month/Day/Week.
+        */
+        HBufC* iInfoBarText;	
+	    
 	    TInt iStart;
 	    TInt iEnd;
 	    TRect iRect;
@@ -133,26 +131,28 @@
 		
 	};
 	
-class CalenPluginLabel : public HbLabel
-    {
-    Q_OBJECT
-    
-	public:
-		CalenPluginLabel( CCalenLunarVietnamesePlugin& aPlugin,QGraphicsItem *parent=0);
-		~CalenPluginLabel();     
+
+NONSHARABLE_CLASS(CCalenPluginLabel) : public CEikLabel 
+	{
+		public:
+		static CCalenPluginLabel* NewL(CCalenLunarVietnamesePlugin& iPlugin);
+		
+		private:
+		~CCalenPluginLabel();
+		CCalenPluginLabel(CCalenLunarVietnamesePlugin& iPlugin);
+		void ConstructL();
 		
-	public slots:	
-	void showLunarData();
-	
-	private:
-		void paint ( QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0 ); 
-		void mousePressEvent(QGraphicsSceneMouseEvent *event);
-	private:
-		CCalenLunarVietnamesePlugin& iPlugin;	
-    };	
+		private: //CCoeControl
+		void HandlePointerEventL(const TPointerEvent& aPointerEvent);
+        void Draw( const TRect& aRect) const;
+		
+		private:
+		CCalenLunarVietnamesePlugin& iPlugin;
+		
+	};	
 
-#endif //__CALENLUNARVIETNAMESEPLUGIN_H__
+#endif //__CALENLUNARPLUGIN_H__
 
 
 
- 									
+ 									
\ No newline at end of file