|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 /* |
|
20 ************************************************************************************ |
|
21 * SvgtEvent |
|
22 ************************************************************************************ |
|
23 */ |
|
24 |
|
25 |
|
26 #ifndef SVGTEVENT_H |
|
27 #define SVGTEVENT_H |
|
28 |
|
29 #include <e32base.h> |
|
30 |
|
31 class CSvgtEvent : public CBase |
|
32 { |
|
33 public: //Data |
|
34 enum TSvgtEventType |
|
35 { |
|
36 ESvgtEventEmbededImage, |
|
37 ESvgtEventFetchImage, |
|
38 ESvgtEventLinkActivated, |
|
39 ESvgtEventLinkActivatedWithShow, |
|
40 ESvgtEventRedraw, |
|
41 ESvgtEventInvalid |
|
42 }; |
|
43 |
|
44 public: //class methods |
|
45 CSvgtEvent(TSvgtEventType aEventType, const TDesC& aUri); |
|
46 ~CSvgtEvent(); |
|
47 TPtrC ImageUri() const; |
|
48 TSvgtEventType EventType() const; |
|
49 private: |
|
50 HBufC* iUri; |
|
51 TSvgtEventType iEventType; |
|
52 }; |
|
53 |
|
54 class CSvgtEventEmbededImage : public CSvgtEvent |
|
55 { |
|
56 public: |
|
57 CSvgtEventEmbededImage( const TDesC& aUri); |
|
58 |
|
59 }; |
|
60 |
|
61 class CSvgtEventFetchImage : public CSvgtEvent |
|
62 { |
|
63 public: |
|
64 CSvgtEventFetchImage( const TDesC& aUri); |
|
65 }; |
|
66 |
|
67 class CSvgtEventLinkActivated : public CSvgtEvent |
|
68 { |
|
69 public: |
|
70 CSvgtEventLinkActivated( const TDesC& aUri); |
|
71 |
|
72 }; |
|
73 |
|
74 class CSvgtEventLinkActivatedWithShow : public CSvgtEvent |
|
75 { |
|
76 public: |
|
77 CSvgtEventLinkActivatedWithShow( const TDesC& aUri, const TDesC& aShow); |
|
78 TPtrC Show() const; |
|
79 |
|
80 private: |
|
81 HBufC* iShow; |
|
82 }; |
|
83 |
|
84 class CSvgtEventRedraw : public CSvgtEvent |
|
85 { |
|
86 public: |
|
87 CSvgtEventRedraw(); |
|
88 private: |
|
89 using CSvgtEvent::ImageUri; |
|
90 }; |
|
91 |
|
92 #endif //SVGTEVENT_H |