|
1 /* |
|
2 * Copyright (c) 2002-2007 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 #include <AknIncallBubbleNotify.h> |
|
19 #include <AknNotifyStd.h> |
|
20 #include <AknNotifySignature.h> |
|
21 #include <avkon.hrh> |
|
22 |
|
23 EXPORT_C CAknIncallBubble* CAknIncallBubble::NewL() |
|
24 { |
|
25 CAknIncallBubble* self = NewLC(); |
|
26 CleanupStack::Pop(); // self |
|
27 return self; |
|
28 } |
|
29 |
|
30 EXPORT_C CAknIncallBubble* CAknIncallBubble::NewLC() |
|
31 { |
|
32 CAknIncallBubble* self = new(ELeave) CAknIncallBubble; |
|
33 CleanupStack::PushL(self); |
|
34 self->ConstructL(); |
|
35 return self; |
|
36 } |
|
37 |
|
38 EXPORT_C CAknIncallBubble::~CAknIncallBubble() |
|
39 { |
|
40 } |
|
41 |
|
42 CAknIncallBubble::CAknIncallBubble() : CAknNotifyBase(KAknIncallBubbleUid) |
|
43 { |
|
44 } |
|
45 |
|
46 void CAknIncallBubble::ConstructL() |
|
47 { |
|
48 CAknNotifyBase::ConstructL(); |
|
49 } |
|
50 |
|
51 EXPORT_C void CAknIncallBubble::SetIncallBubbleFlagsL(const TInt aFlags) |
|
52 { |
|
53 TPckgBuf<SAknNotifierPackage<SAknIncallBubbleParams> > pckg; |
|
54 TInt flags = aFlags; |
|
55 flags &= ~EAknStatusBubbleReservedInternal; // clear internal flag |
|
56 pckg().iParamData.iIncallBubbleFlags = flags; |
|
57 TBuf8<1> resp; |
|
58 StartOrUpdateL(pckg, resp); |
|
59 } |
|
60 |
|
61 EXPORT_C void CAknIncallBubble::SetIncallBubbleAllowedInIdleL(TBool aAllowed) |
|
62 { |
|
63 TPckgBuf<SAknNotifierPackage<SAknIncallBubbleParams> > pckg; |
|
64 TInt flags = 0; |
|
65 flags |= EAknStatusBubbleReservedInternal; |
|
66 if (aAllowed) |
|
67 { |
|
68 flags |= 0x1; |
|
69 } |
|
70 else |
|
71 { |
|
72 flags |= 0x0; |
|
73 } |
|
74 pckg().iParamData.iIncallBubbleFlags = flags; |
|
75 TBuf8<1> resp; |
|
76 StartOrUpdateL(pckg, resp); |
|
77 } |
|
78 |
|
79 EXPORT_C void CAknIncallBubble::SetIncallBubbleAllowedInUsualL(TBool aAllowed) |
|
80 { |
|
81 TPckgBuf<SAknNotifierPackage<SAknIncallBubbleParams> > pckg; |
|
82 TInt flags = 0; |
|
83 flags |= EAknStatusBubbleReservedInternal; |
|
84 if (aAllowed) |
|
85 { |
|
86 flags |= 0x4; |
|
87 } |
|
88 else |
|
89 { |
|
90 flags |= 0x2; |
|
91 } |
|
92 pckg().iParamData.iIncallBubbleFlags = flags; |
|
93 TBuf8<1> resp; |
|
94 StartOrUpdateL(pckg, resp); |
|
95 } |
|
96 |
|
97 EXPORT_C void CAknIncallBubble::CAknNotifyBase_Reserved() |
|
98 { |
|
99 } |
|
100 |
|
101 // End of File |