svgtviewer/SvgtViewerPlugin/UIControlInc/SvgtEvent.h
branchRCL_3
changeset 20 5fd161fa28b6
parent 0 632761c941a7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/svgtviewer/SvgtViewerPlugin/UIControlInc/SvgtEvent.h	Thu Sep 09 11:17:40 2010 +0300
@@ -0,0 +1,92 @@
+/*
+* Copyright (c) 2009 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:
+*
+*/
+
+
+/*
+************************************************************************************
+*   SvgtEvent 
+************************************************************************************
+*/
+
+
+#ifndef SVGTEVENT_H
+#define SVGTEVENT_H
+
+#include <e32base.h>
+
+class CSvgtEvent : public CBase
+    {
+    public: //Data
+    enum TSvgtEventType
+        {
+        ESvgtEventEmbededImage,
+        ESvgtEventFetchImage,
+        ESvgtEventLinkActivated,
+        ESvgtEventLinkActivatedWithShow,
+        ESvgtEventRedraw,
+        ESvgtEventInvalid
+        };
+        
+    public: //class methods
+        CSvgtEvent(TSvgtEventType aEventType, const TDesC& aUri);
+        ~CSvgtEvent();
+        TPtrC ImageUri() const;
+        TSvgtEventType EventType() const;
+    private:
+        HBufC* iUri;
+        TSvgtEventType iEventType;
+    };
+
+class CSvgtEventEmbededImage : public CSvgtEvent
+    {
+    public:
+        CSvgtEventEmbededImage( const TDesC& aUri);
+        
+    };
+    
+class CSvgtEventFetchImage : public CSvgtEvent
+    {
+    public:
+        CSvgtEventFetchImage( const TDesC& aUri);
+    };
+
+class CSvgtEventLinkActivated : public CSvgtEvent
+    {
+    public:
+        CSvgtEventLinkActivated( const TDesC& aUri);
+
+    };
+
+class CSvgtEventLinkActivatedWithShow : public CSvgtEvent
+    {
+    public:
+        CSvgtEventLinkActivatedWithShow( const TDesC& aUri, const TDesC& aShow);
+        TPtrC Show() const;
+        
+    private:
+        HBufC* iShow;
+    };
+
+class CSvgtEventRedraw : public CSvgtEvent
+    {
+    public:
+        CSvgtEventRedraw();
+    private:
+        using CSvgtEvent::ImageUri;
+    };
+    
+#endif //SVGTEVENT_H
\ No newline at end of file