1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
22 const TInt KNumConnectRetries = 5;
26 typedef TThreadFunction* (*EikSrvEntrypoint)();
28 class CEikDebugPreferences;
34 class REikAppUiSession : public RSessionBase
37 IMPORT_C REikAppUiSession();
38 IMPORT_C TInt Connect();
39 IMPORT_C void Close();
40 IMPORT_C TVersion Version() const;
41 IMPORT_C void LaunchTaskList() const;
42 IMPORT_C void CycleTasks(TTaskCycleDirection aDirection) const;
43 IMPORT_C TInt SetStatusPaneFlags(TInt aFlags) const;
44 IMPORT_C TInt SetStatusPaneLayout(TInt aLayoutResId) const;
45 IMPORT_C TInt BlankScreen() const;
46 IMPORT_C TInt UnblankScreen() const;
47 IMPORT_C CEikonEnv::TErrorValidity ResolveError(TDes& aText,TInt aError,TUid aAppUid) const;
48 IMPORT_C void Extension(TUid aExtensionUid,const TDesC8& aBuffer,TRequestStatus& aRequestStatus) const;
49 IMPORT_C TInt GetInstalledFepName(TDes& aName) const;
50 IMPORT_C TInt SetInstalledFepName(const TDesC& aName, TBool aRaiseFileError) const;
51 IMPORT_C CColorList* GetSystemColorsL() const;
52 IMPORT_C void SetSystemColorsL(const CColorList& aColorList) const;
53 IMPORT_C TInt OpenFepAttributes() const;
54 IMPORT_C TInt GetFepAttribute(TUid aAttribUid, TDes8& aAttribData) const;
55 IMPORT_C TInt SetFepAttribute(TUid aAttribUid, const TDesC8& aAttribData) const;
56 IMPORT_C TInt CommitFepAttributes() const;
57 IMPORT_C void CloseFepAttributes() const;
58 IMPORT_C TInt EnableTaskList() const;
59 IMPORT_C virtual void REikAppUiSession_Reserved1();
60 IMPORT_C virtual void REikAppUiSession_Reserved2();
61 IMPORT_C CEikDebugPreferences* GetDebugPreferencesL() const;
62 IMPORT_C CEikonEnv::TErrorValidity ResolveErrorWithTitleL(TDes& aErrorText, TInt aError, TInt& aTextId, TUint& aFlags, TDes& aTitleText, TBool aIsMemoryAllocatedByErrResolver) const;
68 RLibrary iNotUsed; // kept for the moment to preserve sizeof(REikAppUiSession)
71 CExtension* iExtension;
74 //**********************************
76 //**********************************
79 function to panic the server
82 GLREF_C void PanicServer(TEikAppUiServPanic aPanic);
85 #endif // __EIKSRVC_H__