|
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 AknPopupNotify.h |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * Include files |
|
20 */ |
|
21 #include <aknpopupnotify.h> |
|
22 |
|
23 #include "testsdknotifiers.hrh" |
|
24 #include "testsdknotifiers.h" |
|
25 |
|
26 // ----------------------------------------------------------------------------- |
|
27 // CTestSDKNotifiers::TestNotifiersPopNotifyNewLL |
|
28 // ----------------------------------------------------------------------------- |
|
29 // |
|
30 TInt CTestSDKNotifiers::TestNotifiersPopNotifyNewLL( CStifItemParser& /*aItem*/ ) |
|
31 { |
|
32 CAknPopupNotify* popupnotify = CAknPopupNotify::NewL(); |
|
33 CleanupStack::PushL( popupnotify ); |
|
34 STIF_ASSERT_NOT_NULL( popupnotify ); |
|
35 CleanupStack::PopAndDestroy( popupnotify ); |
|
36 |
|
37 return KErrNone; |
|
38 } |
|
39 |
|
40 // ----------------------------------------------------------------------------- |
|
41 // CTestSDKNotifiers::TestNotifiersPopNotifyNewLCL |
|
42 // ----------------------------------------------------------------------------- |
|
43 // |
|
44 TInt CTestSDKNotifiers::TestNotifiersPopNotifyNewLCL( CStifItemParser& /*aItem*/ ) |
|
45 { |
|
46 CAknPopupNotify* popupnotify = CAknPopupNotify::NewLC(); |
|
47 STIF_ASSERT_NOT_NULL( popupnotify ); |
|
48 CleanupStack::PopAndDestroy( popupnotify ); |
|
49 |
|
50 return KErrNone; |
|
51 } |
|
52 |
|
53 // ----------------------------------------------------------------------------- |
|
54 // CTestSDKNotifiers::TestNotifiersPopNotifyDestructorL |
|
55 // ----------------------------------------------------------------------------- |
|
56 // |
|
57 TInt CTestSDKNotifiers::TestNotifiersPopNotifyDestructorL( CStifItemParser& /*aItem*/ ) |
|
58 { |
|
59 CAknPopupNotify* popupnotify = CAknPopupNotify::NewL(); |
|
60 CleanupStack::PushL( popupnotify ); |
|
61 STIF_ASSERT_NOT_NULL( popupnotify ); |
|
62 CleanupStack::PopAndDestroy( popupnotify ); |
|
63 |
|
64 return KErrNone; |
|
65 } |
|
66 |
|
67 // ----------------------------------------------------------------------------- |
|
68 // CTestSDKNotifiers::TestNotifiersPopNotifyPopupMessageLL |
|
69 // ----------------------------------------------------------------------------- |
|
70 // |
|
71 TInt CTestSDKNotifiers::TestNotifiersPopNotifyPopupMessageLL( CStifItemParser& /*aItem*/ ) |
|
72 { |
|
73 CAknPopupNotify* popupnotify = CAknPopupNotify::NewL(); |
|
74 CleanupStack::PushL( popupnotify ); |
|
75 |
|
76 TBuf<KBufSize> buf( KTestString ); |
|
77 popupnotify->PopupMessageL( buf ); |
|
78 |
|
79 CleanupStack::PopAndDestroy( popupnotify ); |
|
80 return KErrNone; |
|
81 } |
|
82 |
|
83 //End file |