equal
deleted
inserted
replaced
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of the License "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 // |
7 // |
8 // Initial Contributors: |
8 // Initial Contributors: |
9 // Nokia Corporation - initial contribution. |
9 // Nokia Corporation - initial contribution. |
21 // 256 characters. |
21 // 256 characters. |
22 // The test passes if this application is started with a document name |
22 // The test passes if this application is started with a document name |
23 // that is longer than 256 characters. |
23 // that is longer than 256 characters. |
24 // |
24 // |
25 // |
25 // |
26 |
|
27 |
|
28 |
26 |
29 /** |
27 /** |
30 @file |
28 @file |
31 @internalComponent - Internal Symbian test code |
29 @internalComponent - Internal Symbian test code |
32 */ |
30 */ |
57 _LIT(KPanicCategory,"TESTFAILED"); |
55 _LIT(KPanicCategory,"TESTFAILED"); |
58 User::Panic(KPanicCategory, aPanic); |
56 User::Panic(KPanicCategory, aPanic); |
59 } |
57 } |
60 |
58 |
61 |
59 |
62 //////////////////////////////////////////////////////////////////////// |
60 // |
63 // |
61 // |
64 // CStartDocAppUi |
62 // CStartDocAppUi |
65 // |
63 // |
66 //////////////////////////////////////////////////////////////////////// |
64 // |
67 class CStartDocAppUi : public CEikAppUi |
65 class CStartDocAppUi : public CEikAppUi |
68 { |
66 { |
69 public: |
67 public: |
70 void ConstructL(); |
68 void ConstructL(); |
71 ~CStartDocAppUi(); |
69 ~CStartDocAppUi(); |
101 iDocNameCheck1Executed = ETrue; |
99 iDocNameCheck1Executed = ETrue; |
102 return EFalse; // don't try to open the document |
100 return EFalse; // don't try to open the document |
103 } |
101 } |
104 |
102 |
105 |
103 |
106 //////////////////////////////////////////////////////////////////////// |
104 // |
107 // |
105 // |
108 // CStartDocDocument |
106 // CStartDocDocument |
109 // |
107 // |
110 //////////////////////////////////////////////////////////////////////// |
108 // |
111 class CStartDocDocument : public CEikDocument |
109 class CStartDocDocument : public CEikDocument |
112 { |
110 { |
113 public: |
111 public: |
114 static CStartDocDocument* NewL(CEikApplication& aApp); |
112 static CStartDocDocument* NewL(CEikApplication& aApp); |
115 CStartDocDocument(CEikApplication& aApp); |
113 CStartDocDocument(CEikApplication& aApp); |
151 User::Exit(KTStartDocTestPassed); |
149 User::Exit(KTStartDocTestPassed); |
152 return NULL; // just to keep the compiler happy |
150 return NULL; // just to keep the compiler happy |
153 } |
151 } |
154 |
152 |
155 |
153 |
156 //////////////////////////////////////////////////////////////////////// |
154 // |
157 // |
155 // |
158 // CStartDocApplication |
156 // CStartDocApplication |
159 // |
157 // |
160 //////////////////////////////////////////////////////////////////////// |
158 // |
161 class CStartDocApplication : public CEikApplication |
159 class CStartDocApplication : public CEikApplication |
162 { |
160 { |
163 private: |
161 private: |
164 // from CApaApplication |
162 // from CApaApplication |
165 CApaDocument* CreateDocumentL(); |
163 CApaDocument* CreateDocumentL(); |
195 GLDEF_C TInt E32Main() |
193 GLDEF_C TInt E32Main() |
196 { |
194 { |
197 return EikStart::RunApplication(NewApplication); |
195 return EikStart::RunApplication(NewApplication); |
198 } |
196 } |
199 |
197 |
|
198 |