|
1 /* |
|
2 * Copyright (c) 2006-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: CUpnpSharingRequest class definition |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 #ifndef __UPNPSHARINGREQUEST_H__ |
|
23 #define __UPNPSHARINGREQUEST_H__ |
|
24 |
|
25 // Include Files |
|
26 #include <e32base.h> |
|
27 #include <e32def.h> //CArrayFix |
|
28 #include <badesca.h> //CDesCArray |
|
29 |
|
30 |
|
31 /** |
|
32 * Helper class to store information about ongoing/pending sharing request |
|
33 * @since S60 3.1 |
|
34 */ |
|
35 class CUpnpSharingRequest : public CBase |
|
36 { |
|
37 public : |
|
38 |
|
39 /** |
|
40 * 2 phased contructor |
|
41 * @since S60 3.1 |
|
42 * @param aKind Type of sharing request( images&videos or music ) |
|
43 * @param aArr Indexes of selection relative to albums or playlists |
|
44 * @param aNameArray Names of containers to share |
|
45 */ |
|
46 static CUpnpSharingRequest* NewL( |
|
47 TInt aKind, |
|
48 const RArray<TInt>& aArr, |
|
49 CDesCArray* aIdArray = NULL, |
|
50 CDesCArray* aNameArray = NULL ); |
|
51 |
|
52 /** |
|
53 * 2nd phase constructor. |
|
54 * @since S60 3.1 |
|
55 * @param aArr Indexes of selection relative to albums or playlists |
|
56 * @param aNameArray Names of containers to share |
|
57 */ |
|
58 void ConstructL( const RArray<TInt>& aArr, |
|
59 CDesCArray* aIdArray, |
|
60 CDesCArray* aNameArray ); |
|
61 |
|
62 /** |
|
63 * Constructor |
|
64 * @since S60 3.1 |
|
65 * @param aKind Type of sharing request( images&videos or music ) |
|
66 */ |
|
67 CUpnpSharingRequest( TInt aKind ); |
|
68 |
|
69 /** |
|
70 * Destructor |
|
71 */ |
|
72 virtual ~CUpnpSharingRequest(); |
|
73 |
|
74 public : |
|
75 /** |
|
76 * Determines the type of sharing: |
|
77 * images&videos or music |
|
78 */ |
|
79 TInt iKind; |
|
80 |
|
81 /** |
|
82 * The number of items in selection |
|
83 */ |
|
84 TInt iItemCount; |
|
85 |
|
86 /** |
|
87 * The progress of sharing if it is ongoing |
|
88 */ |
|
89 TInt iProgress; |
|
90 |
|
91 /** |
|
92 * Selections for the sharing request |
|
93 */ |
|
94 RArray<TInt> iSelections; |
|
95 |
|
96 /** |
|
97 * Array for object IDs |
|
98 */ |
|
99 CDesCArray* iObjectIds; |
|
100 |
|
101 /** |
|
102 * Array for object names |
|
103 */ |
|
104 CDesCArray* iObjectNames; |
|
105 }; |
|
106 |
|
107 |
|
108 #endif // __UPNPSHARINGREQUEST_H__ |