1 /* |
|
2 * Copyright (c) 2009 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 #ifndef MUSMANAGERCLIENTSESSION_H |
|
19 #define MUSMANAGERCLIENTSESSION_H |
|
20 |
|
21 #include <e32std.h> |
|
22 |
|
23 #include "musunittesting.h" |
|
24 #include "musmanagercommon.h" |
|
25 |
|
26 /** |
|
27 * ?one_line_short_description |
|
28 * |
|
29 * ?more_complete_description |
|
30 * |
|
31 * @lib ?library |
|
32 * @since S60 ?S60_version *** for example, S60 v3.0 |
|
33 */ |
|
34 class RMusManagerClientSession |
|
35 : public RSessionBase |
|
36 { |
|
37 |
|
38 MUS_UNITTEST( UT_RMusManagerClientSession ) |
|
39 |
|
40 public: // constructor |
|
41 |
|
42 RMusManagerClientSession(); |
|
43 |
|
44 public: // new functions |
|
45 |
|
46 void ConnectL(); |
|
47 |
|
48 void Disconnect(); |
|
49 |
|
50 void InvestigateAvailabilityL(); |
|
51 |
|
52 MultimediaSharing::TMusAvailabilityStatus QueryAvailabilityL(); |
|
53 |
|
54 void StartL( MultimediaSharing::TMusUseCase aUseCase ); |
|
55 |
|
56 void StartObservingAvailabilityL(); |
|
57 |
|
58 void StopL(); |
|
59 |
|
60 /** |
|
61 * This function allows clients to request coomand's to be executed by |
|
62 * the MUS manager server. |
|
63 * |
|
64 * In erroneous cases, this function will leave |
|
65 * with an error code that describes the error. Positive leave codes |
|
66 * are defined in MultimediaSharing::TMusAvailabilityStatus. |
|
67 * |
|
68 * @param aRequest Defines the coomand type. |
|
69 * |
|
70 */ |
|
71 void HandleCommandL( MultimediaSharing::TCommandType aCommandType ); |
|
72 |
|
73 void HandleSipRequestL( TInt aUid ); |
|
74 |
|
75 void MonitorAvailabilityL( |
|
76 TRequestStatus& aRequestStatus, |
|
77 TIpcArgs& aIpcArgs ); |
|
78 |
|
79 void CancelMonitoringL(); |
|
80 |
|
81 private: // data |
|
82 |
|
83 TVersion Version() const; |
|
84 }; |
|
85 |
|
86 |
|
87 |
|
88 #endif // MUSMANAGERCLIENTSESSION_H |
|