|
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: Test AknNotify.h |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * Include files |
|
20 */ |
|
21 #include <aknnotify.h> |
|
22 #include <aknglobalnote.h> |
|
23 #include <aknsddata.h> |
|
24 #include "testsdknotifiers.h" |
|
25 |
|
26 // ----------------------------------------------------------------------------- |
|
27 // CTestSDKNotifiers::TestNotifiersNotifyDestructorL |
|
28 // ----------------------------------------------------------------------------- |
|
29 // |
|
30 TInt CTestSDKNotifiers::TestNotifiersNotifyDestructorL( CStifItemParser& /*aItem*/ ) |
|
31 { |
|
32 CAknGlobalNote* note = CAknGlobalNote::NewL(); |
|
33 CleanupStack::PushL( note ); |
|
34 STIF_ASSERT_NOT_NULL( note ); |
|
35 CleanupStack::PopAndDestroy( note ); |
|
36 |
|
37 return KErrNone; |
|
38 } |
|
39 |
|
40 // ----------------------------------------------------------------------------- |
|
41 // CTestSDKNotifiers::TestNotifiersNotifySetSecondaryDisplayDataL |
|
42 // ----------------------------------------------------------------------------- |
|
43 // |
|
44 TInt CTestSDKNotifiers::TestNotifiersNotifySetSecondaryDisplayDataL( CStifItemParser& /*aItem*/ ) |
|
45 { |
|
46 CAknGlobalNote* note = CAknGlobalNote::NewL(); |
|
47 CleanupStack::PushL( note ); |
|
48 CAknSDData* sddata = new( ELeave ) CAknSDData; |
|
49 CleanupStack::PushL( sddata ); |
|
50 note->SetSecondaryDisplayData( sddata ); |
|
51 |
|
52 CleanupStack::Pop( sddata ); |
|
53 CleanupStack::PopAndDestroy( note ); |
|
54 return KErrNone; |
|
55 } |
|
56 |
|
57 |
|
58 //End file |