epoc32/include/eiksrvc.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 #ifndef __EIKSRVC_H__
    17 #define __EIKSRVC_H__
    18 
    19 #include <eiksrvs.h>
    20 #include <eiksrv.h>
    21 
    22 const TInt KNumConnectRetries = 5;
    23 /** 
    24 @internalComponent
    25 */
    26 typedef TThreadFunction* (*EikSrvEntrypoint)();
    27 
    28 class CEikDebugPreferences;
    29 
    30 /**
    31 @publishedPartner 
    32 @released
    33 */
    34 class REikAppUiSession : public RSessionBase
    35 	{
    36 public:
    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;
    63 private:
    64 	class CExtension;
    65 	void StartServerL();
    66 #if defined(__WINS__)
    67 private:
    68 	RLibrary iNotUsed; // kept for the moment to preserve sizeof(REikAppUiSession)
    69 #endif
    70 private:
    71 	CExtension* iExtension;
    72 	};
    73 
    74 //**********************************
    75 //global functions
    76 //**********************************
    77 
    78 /**
    79 function to panic the server
    80 @internalComponent
    81 */
    82 GLREF_C void PanicServer(TEikAppUiServPanic aPanic);
    83 
    84 
    85 #endif	// __EIKSRVC_H__