diff -r e52958d06c29 -r 20b99a6d6175 svgtviewer/SvgtViewerPlugin/UIControlInc/SvgtEvent.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/svgtviewer/SvgtViewerPlugin/UIControlInc/SvgtEvent.h Wed Sep 01 12:29:59 2010 +0100 @@ -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 + +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