1 /* |
|
2 * Copyright (c) 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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MUSMANAGERSERVERSESSION_H |
|
20 #define MUSMANAGERSERVERSESSION_H |
|
21 |
|
22 #include "musmanager.h" |
|
23 #include "musmonitoravailabilityobserver.h" |
|
24 #include "musavailabilitypluginmanagerobserver.h" |
|
25 |
|
26 class CMusManagerServer; |
|
27 class MMusManagerServerSessionObserver; |
|
28 class TRequestStatus; |
|
29 |
|
30 /** |
|
31 * This class contains |
|
32 * |
|
33 * @since S60 v3.2 |
|
34 */ |
|
35 class CMusManagerServerSession : public CSession2, |
|
36 MMusMonitorAvailabilityObserver |
|
37 |
|
38 { |
|
39 public: // Constructors and destructor |
|
40 |
|
41 static CMusManagerServerSession* NewL( |
|
42 CMusManagerServer& aServer, |
|
43 MMusManagerServerSessionObserver& aObserver ); |
|
44 |
|
45 static CMusManagerServerSession* NewLC( |
|
46 CMusManagerServer& aServer, |
|
47 MMusManagerServerSessionObserver& aObserver ); |
|
48 |
|
49 ~CMusManagerServerSession (); |
|
50 |
|
51 private: |
|
52 |
|
53 TInt MonitorAvailabilityL(); |
|
54 public: // From CSession2 |
|
55 |
|
56 void ServiceL( const RMessage2& aMessage ); |
|
57 |
|
58 public: // from MMusMonitorAvailabilityObserver |
|
59 |
|
60 virtual void AvailabilityChangedL( |
|
61 MultimediaSharing::TMusAvailabilityStatus aAvailability ); |
|
62 |
|
63 virtual void RequestComplete(); |
|
64 |
|
65 private: // Second phase constructors |
|
66 |
|
67 CMusManagerServerSession( |
|
68 CMusManagerServer& aServer, |
|
69 MMusManagerServerSessionObserver& aObserver ); |
|
70 |
|
71 void ConstructL(); |
|
72 |
|
73 public: // Helper functions |
|
74 |
|
75 |
|
76 |
|
77 private: // Data |
|
78 |
|
79 CMusManagerServer& iServer; |
|
80 |
|
81 MMusManagerServerSessionObserver& iServerCore; |
|
82 |
|
83 RMessage2 iMessage; |
|
84 |
|
85 RArray<MultimediaSharing::TMusAvailabilityStatus> iAvailabilityStatus; |
|
86 |
|
87 MultimediaSharing::TMusAvailabilityStatus iLastReport; |
|
88 |
|
89 TInt iSessionCounter; |
|
90 |
|
91 private: // For testing purposes |
|
92 }; |
|
93 |
|
94 #endif // ? MUSMANAGERSERVERSESSION_H |
|