1 /** @file |
|
2 * Copyright (c) 2005-2006 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: RUpnpAVCPEngineMSClient |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_RUPNPAVCPENGINEMSCLIENT_H |
|
20 #define C_RUPNPAVCPENGINEMSCLIENT_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <in_sock.h> |
|
25 #include "upnpavcpengineclient.h" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class TAVDevice; |
|
29 class CUpnpMetadata; |
|
30 |
|
31 |
|
32 // CLASS DECLARATION |
|
33 /** |
|
34 * Class used for accessing MS's metadata. |
|
35 * Also it provides list of currently active MSs |
|
36 */ |
|
37 class RUpnpAVCPEngineMSClient : public RUpnpAVCPEngineClient |
|
38 { |
|
39 public: |
|
40 /** |
|
41 * C++ default constructor. |
|
42 */ |
|
43 IMPORT_C RUpnpAVCPEngineMSClient(); |
|
44 /** |
|
45 * Get list of available MS devices |
|
46 * |
|
47 * @param aDeviceList array to update |
|
48 */ |
|
49 IMPORT_C TInt GetDeviceListL(RArray<TAVDevice>& aDeviceList); |
|
50 /** |
|
51 * Requests for preparing metadata for given path |
|
52 * |
|
53 * @param aUUID UDN of MS |
|
54 * @param aPathName pathname |
|
55 * @param aIdPckg id of command with result (metadata) |
|
56 * @param aSizePckg size of metadata |
|
57 */ |
|
58 void PrepareMetadataL(const TDesC8& aUUID, const TDesC8& aPathName, |
|
59 TPckg<TInt>& aIdPckg, TPckg<TInt>& aSizePckg); |
|
60 |
|
61 /** |
|
62 * Requests for preparing metadata for given path |
|
63 * |
|
64 * @param aUUID UDN of MS |
|
65 * @param aPathName pathname |
|
66 * @param aIdPckg id of command with result (metadata) |
|
67 * @param aSizePckg size of metadata |
|
68 */ |
|
69 void PrepareMetadata(TRequestStatus& aStatus, const TDesC8& aUUID, const TDesC8& aPathName, |
|
70 TPckg<TInt>& aIdPckg, TPckg<TInt>& aSizePckg); |
|
71 |
|
72 |
|
73 /** |
|
74 * Requests for downloading metadata from result of previous run command |
|
75 * |
|
76 * @param aId id of command with result (metadata) |
|
77 * @param aMetaData buffer for metadata |
|
78 */ |
|
79 void DownloadMetadataL(TInt aId, TDes8& aMetaData); |
|
80 |
|
81 /** |
|
82 * Requests for downloading metadata from result of previous run command |
|
83 * |
|
84 * @param aId id of command with result (metadata) |
|
85 * @param aMetaData buffer for metadata |
|
86 */ |
|
87 void DownloadMetadata(TRequestStatus& aStatus, TInt aId, TDes8& aMetaData); |
|
88 |
|
89 /** |
|
90 * Requests for set metadata for given path |
|
91 * |
|
92 * @param aUUID UDN of MS |
|
93 * @param aPathName pathname |
|
94 * @param aOldMetaData old metadata |
|
95 * @param aNewMetaData new metadata |
|
96 */ |
|
97 void SetMetadataL(const TDesC8& aUUID, const TDesC8& aPathName, const TDesC8& aOldMetaData, const TDesC8& aNewMetaData); |
|
98 |
|
99 /** |
|
100 * Requests for set metadata for given path |
|
101 * |
|
102 * @param aUUID UDN of MS |
|
103 * @param aPathName pathname |
|
104 * @param aOldMetaData old metadata |
|
105 * @param aNewMetaData new metadata |
|
106 */ |
|
107 void SetMetadata(TRequestStatus& aStatus, const TDesC8& aUUID, const TDesC8& aPathName, const TDesC8& aOldMetaData, const TDesC8& aNewMetaData); |
|
108 }; |
|
109 |
|
110 #endif // C_RUPNPAVCPENGINEMSCLIENT_H |
|
111 |
|
112 // End of File |
|