williamr@2
|
1 |
// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
|
williamr@2
|
2 |
// All rights reserved.
|
williamr@2
|
3 |
// This component and the accompanying materials are made available
|
williamr@2
|
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
|
williamr@2
|
5 |
// which accompanies this distribution, and is available
|
williamr@2
|
6 |
// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
|
williamr@2
|
7 |
//
|
williamr@2
|
8 |
// Initial Contributors:
|
williamr@2
|
9 |
// Nokia Corporation - initial contribution.
|
williamr@2
|
10 |
//
|
williamr@2
|
11 |
// Contributors:
|
williamr@2
|
12 |
//
|
williamr@2
|
13 |
// Description:
|
williamr@2
|
14 |
//
|
williamr@2
|
15 |
|
williamr@2
|
16 |
#ifndef __EIKSRVC_H__
|
williamr@2
|
17 |
#define __EIKSRVC_H__
|
williamr@2
|
18 |
|
williamr@2
|
19 |
#include <eiksrvs.h>
|
williamr@2
|
20 |
#include <eiksrv.h>
|
williamr@2
|
21 |
|
williamr@2
|
22 |
const TInt KNumConnectRetries = 5;
|
williamr@2
|
23 |
/**
|
williamr@2
|
24 |
@internalComponent
|
williamr@2
|
25 |
*/
|
williamr@2
|
26 |
typedef TThreadFunction* (*EikSrvEntrypoint)();
|
williamr@2
|
27 |
|
williamr@2
|
28 |
class CEikDebugPreferences;
|
williamr@2
|
29 |
|
williamr@2
|
30 |
/**
|
williamr@2
|
31 |
@publishedPartner
|
williamr@2
|
32 |
@released
|
williamr@2
|
33 |
*/
|
williamr@2
|
34 |
class REikAppUiSession : public RSessionBase
|
williamr@2
|
35 |
{
|
williamr@2
|
36 |
public:
|
williamr@2
|
37 |
IMPORT_C REikAppUiSession();
|
williamr@2
|
38 |
IMPORT_C TInt Connect();
|
williamr@2
|
39 |
IMPORT_C void Close();
|
williamr@2
|
40 |
IMPORT_C TVersion Version() const;
|
williamr@2
|
41 |
IMPORT_C void LaunchTaskList() const;
|
williamr@2
|
42 |
IMPORT_C void CycleTasks(TTaskCycleDirection aDirection) const;
|
williamr@2
|
43 |
IMPORT_C TInt SetStatusPaneFlags(TInt aFlags) const;
|
williamr@2
|
44 |
IMPORT_C TInt SetStatusPaneLayout(TInt aLayoutResId) const;
|
williamr@2
|
45 |
IMPORT_C TInt BlankScreen() const;
|
williamr@2
|
46 |
IMPORT_C TInt UnblankScreen() const;
|
williamr@2
|
47 |
IMPORT_C CEikonEnv::TErrorValidity ResolveError(TDes& aText,TInt aError,TUid aAppUid) const;
|
williamr@2
|
48 |
IMPORT_C void Extension(TUid aExtensionUid,const TDesC8& aBuffer,TRequestStatus& aRequestStatus) const;
|
williamr@2
|
49 |
IMPORT_C TInt GetInstalledFepName(TDes& aName) const;
|
williamr@2
|
50 |
IMPORT_C TInt SetInstalledFepName(const TDesC& aName, TBool aRaiseFileError) const;
|
williamr@2
|
51 |
IMPORT_C CColorList* GetSystemColorsL() const;
|
williamr@2
|
52 |
IMPORT_C void SetSystemColorsL(const CColorList& aColorList) const;
|
williamr@2
|
53 |
IMPORT_C TInt OpenFepAttributes() const;
|
williamr@2
|
54 |
IMPORT_C TInt GetFepAttribute(TUid aAttribUid, TDes8& aAttribData) const;
|
williamr@2
|
55 |
IMPORT_C TInt SetFepAttribute(TUid aAttribUid, const TDesC8& aAttribData) const;
|
williamr@2
|
56 |
IMPORT_C TInt CommitFepAttributes() const;
|
williamr@2
|
57 |
IMPORT_C void CloseFepAttributes() const;
|
williamr@2
|
58 |
IMPORT_C TInt EnableTaskList() const;
|
williamr@2
|
59 |
IMPORT_C virtual void REikAppUiSession_Reserved1();
|
williamr@2
|
60 |
IMPORT_C virtual void REikAppUiSession_Reserved2();
|
williamr@2
|
61 |
IMPORT_C CEikDebugPreferences* GetDebugPreferencesL() const;
|
williamr@2
|
62 |
IMPORT_C CEikonEnv::TErrorValidity ResolveErrorWithTitleL(TDes& aErrorText, TInt aError, TInt& aTextId, TUint& aFlags, TDes& aTitleText, TBool aIsMemoryAllocatedByErrResolver) const;
|
williamr@2
|
63 |
private:
|
williamr@2
|
64 |
class CExtension;
|
williamr@2
|
65 |
void StartServerL();
|
williamr@2
|
66 |
#if defined(__WINS__)
|
williamr@2
|
67 |
private:
|
williamr@2
|
68 |
RLibrary iNotUsed; // kept for the moment to preserve sizeof(REikAppUiSession)
|
williamr@2
|
69 |
#endif
|
williamr@2
|
70 |
private:
|
williamr@2
|
71 |
CExtension* iExtension;
|
williamr@2
|
72 |
};
|
williamr@2
|
73 |
|
williamr@2
|
74 |
//**********************************
|
williamr@2
|
75 |
//global functions
|
williamr@2
|
76 |
//**********************************
|
williamr@2
|
77 |
|
williamr@2
|
78 |
/**
|
williamr@2
|
79 |
function to panic the server
|
williamr@2
|
80 |
@internalComponent
|
williamr@2
|
81 |
*/
|
williamr@2
|
82 |
GLREF_C void PanicServer(TEikAppUiServPanic aPanic);
|
williamr@2
|
83 |
|
williamr@2
|
84 |
|
williamr@2
|
85 |
#endif // __EIKSRVC_H__
|