equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2007 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: a data class containing filetransfer-related data |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 #ifndef T_TUPNPFILETRANSFEREVENT_H |
|
24 #define T_TUPNPFILETRANSFEREVENT_H |
|
25 |
|
26 #include <e32base.h> |
|
27 #include <s32mem.h> |
|
28 |
|
29 // CLASS DECLARATION |
|
30 /** |
|
31 * UPnP AV Controller Client/Server communication helper class |
|
32 * |
|
33 * |
|
34 * @lib - |
|
35 * @since Series 60 3.2 |
|
36 */ |
|
37 class TUpnpFileTransferEvent |
|
38 { |
|
39 |
|
40 public: |
|
41 |
|
42 /** |
|
43 * Defines filetransfer events |
|
44 */ |
|
45 enum TTransferEvent |
|
46 { |
|
47 EUndefined = 0, |
|
48 ETransferStarted, |
|
49 ETransferCompleted, |
|
50 ETransferProgress, |
|
51 EDeviceDisconnected |
|
52 }; |
|
53 |
|
54 public: |
|
55 |
|
56 /** |
|
57 * Constructor |
|
58 */ |
|
59 inline TUpnpFileTransferEvent() : |
|
60 iEvent( EUndefined ), |
|
61 iKey( 0 ), |
|
62 iStatus( 0 ), |
|
63 iParam1( 0 ), |
|
64 iParam2( 0 ), |
|
65 iParam3( 0 ) |
|
66 {} |
|
67 |
|
68 /** |
|
69 * Assigment operator |
|
70 */ |
|
71 inline TUpnpFileTransferEvent& operator=( |
|
72 const TUpnpFileTransferEvent& aEvent ) |
|
73 { |
|
74 iEvent = aEvent.iEvent; |
|
75 iKey = aEvent.iKey; |
|
76 iStatus = aEvent.iStatus; |
|
77 iParam1 = aEvent.iParam1; |
|
78 iParam2 = aEvent.iParam2; |
|
79 iParam3 = aEvent.iParam3; |
|
80 return *this; |
|
81 } |
|
82 |
|
83 public: |
|
84 |
|
85 /** |
|
86 * Filetransfer event |
|
87 */ |
|
88 TTransferEvent iEvent; |
|
89 |
|
90 /** |
|
91 * Transfer key. Identifies the file transfer |
|
92 */ |
|
93 TInt iKey; |
|
94 |
|
95 /** |
|
96 * Status (error) code |
|
97 */ |
|
98 TInt iStatus; |
|
99 |
|
100 /** |
|
101 * Undefined param 1 |
|
102 */ |
|
103 TInt iParam1; |
|
104 |
|
105 /** |
|
106 * Undefined param 2 |
|
107 */ |
|
108 TInt iParam2; |
|
109 |
|
110 /** |
|
111 * Undefined param 3 |
|
112 */ |
|
113 TAny* iParam3; |
|
114 |
|
115 }; |
|
116 |
|
117 #endif // T_TUPNPFILETRANSFEREVENT_H |
|
118 |
|
119 // End of file |
|
120 |