|
1 /* |
|
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: This interface is used by |
|
15 * clients to get and availability setting for Video Charging |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __MUSAVASETTINGS_H__ |
|
21 #define __MUSAVASETTINGS_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <badesca.h> |
|
25 #include <e32base.h> |
|
26 #include <e32std.h> |
|
27 |
|
28 class MMusAvaSettingsObserver; |
|
29 |
|
30 /** |
|
31 * Defines setting interface for the MusAvailability Plug-in |
|
32 * |
|
33 * ECOM clients set and get setting are used by MusAvailability Plug-in. |
|
34 * |
|
35 * @lib musavailabilityplugin.lib |
|
36 */ |
|
37 |
|
38 class MMusAvaSettings |
|
39 { |
|
40 |
|
41 public: |
|
42 |
|
43 enum TManualActivation |
|
44 { |
|
45 EActivationNotExecuted, |
|
46 EActivationExecuted, |
|
47 EActivationAllowed, |
|
48 EActivationNotAllowed |
|
49 }; |
|
50 public: |
|
51 |
|
52 /** |
|
53 * Returns the manual activation |
|
54 * |
|
55 */ |
|
56 virtual TManualActivation ManualActivation(); |
|
57 |
|
58 /** |
|
59 * Returns the telephone number of remote host of active CS call. |
|
60 * |
|
61 * @return The telephone number. |
|
62 */ |
|
63 virtual const TDesC& TelNumber() const; |
|
64 |
|
65 /** |
|
66 * Returns the contact name of remote host of active CS call. |
|
67 * |
|
68 * @return The contact name. |
|
69 */ |
|
70 virtual const TDesC& ContactName() const; |
|
71 |
|
72 /** |
|
73 * Returns the possible SIP addresses of the remote host. |
|
74 * |
|
75 * @return The SIP addresses in an array. |
|
76 */ |
|
77 virtual const MDesCArray& SipAddresses() const; |
|
78 |
|
79 /** |
|
80 * Returns the proposal for the remote host SIP address. |
|
81 * |
|
82 * @return The telephone number. |
|
83 */ |
|
84 virtual const TDesC& SipAddressProposal() const; |
|
85 |
|
86 /** |
|
87 * Returns the contact id of the remote host. |
|
88 * |
|
89 * @return The contact id; KErrNotFound, if not found any. |
|
90 */ |
|
91 virtual TInt ContactId() const; |
|
92 |
|
93 /** |
|
94 * Returns the supported video codecs. |
|
95 * |
|
96 * @return The video codecs |
|
97 */ |
|
98 virtual const MDesCArray& VideoCodecs() const; |
|
99 |
|
100 /** |
|
101 * Returns the supported audio codecs. |
|
102 * |
|
103 * @return The supported audio codecs. |
|
104 */ |
|
105 virtual const MDesCArray& AudioCodecs() const; |
|
106 |
|
107 /** |
|
108 * Returns the id of the preferable SIP profile. |
|
109 * |
|
110 * @return The SIP profile id. |
|
111 */ |
|
112 virtual TInt SipProfileId() const; |
|
113 |
|
114 /** |
|
115 * Sets the settings observer pointer |
|
116 * |
|
117 */ |
|
118 virtual void SetObserver( MMusAvaSettingsObserver& aObserver ); |
|
119 |
|
120 /** |
|
121 * Sets the for the manual activation |
|
122 * |
|
123 */ |
|
124 virtual void SetManualActivation( TManualActivation aManualActivation ); |
|
125 |
|
126 /** |
|
127 * Returns the direction of the mobile call. |
|
128 * |
|
129 * @return 0, if the direction of the call is unknown. |
|
130 * 1, call is from public number. |
|
131 * 2, call is from private number |
|
132 */ |
|
133 virtual TInt CallPrivacy(); |
|
134 |
|
135 }; |
|
136 |
|
137 #include "musavasettings.inl" |
|
138 |
|
139 #endif |
|
140 |