|
1 /* |
|
2 * Copyright (c) 2006-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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CMMCUSTOMGSMEXT_H |
|
21 #define CMMCUSTOMGSMEXT_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "CMmCustomExtInterface.h" |
|
25 #include "cmmphonefactorytsy.h" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CMmCustomTsy; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * CMmCustomGsmExt contains GSM mode dependent custom functionality. |
|
34 * Extension request handles are stored in MM Custom object. |
|
35 */ |
|
36 NONSHARABLE_CLASS( CMmCustomGsmExt ) : public CMmCustomExtInterface |
|
37 { |
|
38 public: |
|
39 |
|
40 /** |
|
41 * Destructor. |
|
42 */ |
|
43 virtual ~CMmCustomGsmExt(); |
|
44 |
|
45 /** |
|
46 * Creates a new GSM Custom specific object instance. |
|
47 * |
|
48 * @param aMmPhoneTsy a pointer to MM Phone Tsy object |
|
49 * @param aMmCustomTsy a pointer to MM Custom Tsy object |
|
50 */ |
|
51 static CMmCustomGsmExt* NewL( CMmPhoneTsy* aMmPhoneTsy, |
|
52 CMmCustomTsy* aMmCustomTsy ); |
|
53 |
|
54 /** |
|
55 * Sets if local remote alerting tone playing is required |
|
56 * |
|
57 * @param aAlertingToneStatus to play locally or not |
|
58 */ |
|
59 void SetLocalRemoteAlertToneRequired( TBool aAlertingToneStatus ); |
|
60 |
|
61 /** |
|
62 * Returns remote alerting tone status |
|
63 * |
|
64 * @param aStatus Pointer to remote alert tone status |
|
65 * @return KErrNone |
|
66 */ |
|
67 TInt GetRemoteAlertingToneStatus( |
|
68 RMmCustomAPI::TRemoteAlertingToneStatus* aStatus ); |
|
69 |
|
70 private: |
|
71 |
|
72 /** |
|
73 * For initialising object attributes. |
|
74 * |
|
75 * @param aMmCustomTsy A pointer to MM Custom Tsy object |
|
76 */ |
|
77 void ConstructL( CMmCustomTsy* aMmCustomTsy ); |
|
78 |
|
79 /** |
|
80 * Constructor. |
|
81 * |
|
82 * @param aMmPhoneTsy A pointer to MM Phone Tsy object |
|
83 */ |
|
84 CMmCustomGsmExt( CMmPhoneTsy* aMmPhoneTsy ); |
|
85 |
|
86 private: |
|
87 |
|
88 /** |
|
89 * Pointer to the Custom TSY object |
|
90 * Not own. |
|
91 */ |
|
92 CMmCustomTsy* iMmCustomTsy; |
|
93 |
|
94 /** |
|
95 * Remote alerting status |
|
96 */ |
|
97 RMmCustomAPI::TRemoteAlertingToneStatus iRemoteAlertingToneStatus; |
|
98 |
|
99 /** |
|
100 * Ptr to CMmPhoneTsy object |
|
101 * Not own. |
|
102 */ |
|
103 CMmPhoneTsy* iMmPhoneTsy; |
|
104 |
|
105 }; |
|
106 |
|
107 #endif // CMMCUSTOMGSMEXT_H |
|
108 |
|
109 // End of File |