|
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: Header file for the CUpnpCopyTask class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef UPNP_COPY_TASK_H |
|
20 #define UPNP_COPY_TASK_H |
|
21 |
|
22 // INCLUDES |
|
23 // System |
|
24 #include <e32base.h> |
|
25 // base class |
|
26 #include "upnpfiletransferbasetask.h" |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 |
|
30 |
|
31 /** |
|
32 * This class defines the CUpnpCopyTask used in UpnpCommand component. |
|
33 * |
|
34 * @since S60 3.2 |
|
35 */ |
|
36 class CUpnpCopyTask : public CUpnpFileTransferBaseTask |
|
37 { |
|
38 public: // Methods from CUpnpTask |
|
39 |
|
40 /** |
|
41 * Creates a new CUpnpCopyTask object. Allocates Upnp Fw resources. |
|
42 * Resources will be released when the task is destroyed. |
|
43 * |
|
44 * @since S60 3.2 |
|
45 * @return a new instance of CUpnpCopyTask, casted to type CUpnpTask |
|
46 */ |
|
47 static CUpnpTask* NewL(); |
|
48 |
|
49 /** |
|
50 * Allocates the Upnp Fw resources. |
|
51 * |
|
52 * @since S60 3.2 |
|
53 */ |
|
54 void AllocateResourcesL(); |
|
55 |
|
56 /** |
|
57 * Executes the task. |
|
58 * |
|
59 * @since S60 3.2 |
|
60 */ |
|
61 void ExecuteL(); |
|
62 |
|
63 |
|
64 public: // Public destructor |
|
65 |
|
66 /** |
|
67 * Destructor. |
|
68 */ |
|
69 virtual ~CUpnpCopyTask(); |
|
70 |
|
71 private: // Private construct/destruct methods |
|
72 |
|
73 /** |
|
74 * Perform the first phase of two phase construction. |
|
75 * |
|
76 * @since S60 3.2 |
|
77 * @return a new instance of CUpnpCopyTask, casted to type CUpnpTask |
|
78 */ |
|
79 CUpnpCopyTask(); |
|
80 |
|
81 /** |
|
82 * Perform the second phase of two phase construction. Reserves the |
|
83 * Upnp Fw resources (they are released when the task is destroyed). |
|
84 */ |
|
85 void ConstructL(); |
|
86 |
|
87 }; |
|
88 |
|
89 #endif // UPNP_COPY_TASK_H |
|
90 |
|
91 // End of File |