1 /* |
|
2 * Copyright (c) 2002 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: |
|
15 * MPsetCallBarring defines interface to get and set call barring |
|
16 * setting in the network. |
|
17 * |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 #ifndef MPSETCALLBARRING_H |
|
23 #define MPSETCALLBARRING_H |
|
24 |
|
25 // INCLUDES |
|
26 #include <e32base.h> |
|
27 #include <nwdefs.h> |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class MPsetBarringObserver; |
|
31 |
|
32 // CLASS DEFINITIONS |
|
33 /** |
|
34 * MPsetCallBarring class is virtual class for call barring. |
|
35 * @lib phonesettings.lib |
|
36 * @since 1.0 |
|
37 */ |
|
38 class MPsetCallBarring |
|
39 { |
|
40 public: |
|
41 |
|
42 /** |
|
43 * Sets barring status to the network. |
|
44 * |
|
45 * @param aBarring New status of barring. |
|
46 * @param aBsc List of basic service groups. |
|
47 */ |
|
48 virtual void SetBarringL( const TCallBarringSetting& aBarring, |
|
49 TBasicServiceGroups aBsc ) = 0; |
|
50 |
|
51 /** |
|
52 * Checks the barring status from network |
|
53 * |
|
54 * @param aGroup Service group concerned. |
|
55 * @param aMode Barring program mode. |
|
56 */ |
|
57 virtual void GetBarringStatusL( const TServiceGroup aGroup, |
|
58 const TBarringProgram aMode ) = 0; |
|
59 |
|
60 /** |
|
61 * Cancels the pending request. |
|
62 * |
|
63 * @return Returns error code |
|
64 */ |
|
65 virtual TInt CancelCurrentRequest()=0; |
|
66 }; |
|
67 #endif //MPSETCALLBARRING_H |
|
68 //End of file |
|