26
|
1 |
/*
|
|
2 |
* Copyright (c) 2005-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:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef __AKN_CAP_SERVER_CLIENT__
|
|
19 |
#define __AKN_CAP_SERVER_CLIENT__
|
|
20 |
|
|
21 |
#include <babitflags.h>
|
|
22 |
#include <eikserverapp.h>
|
|
23 |
#include <aknanimdllstd.h>
|
|
24 |
#include <vwsdef.h>
|
|
25 |
#include <w32std.h>
|
|
26 |
|
|
27 |
class TAknDiscreetPopupData;
|
|
28 |
|
|
29 |
|
|
30 |
enum TAknDefaultKeyboardRepeatRate{
|
|
31 |
EAknApplicationDefaulRepeatRate,
|
|
32 |
EAknEditorDefaulRepeatRate
|
|
33 |
};
|
|
34 |
|
|
35 |
class RAknUiServer : public REikAppServiceBase
|
|
36 |
{
|
|
37 |
public:
|
|
38 |
IMPORT_C TInt ConnectAndSendAppsKeySuppress(TBool aSuppress);
|
|
39 |
IMPORT_C TInt HideApplicationFromFsw(TBool aHide, TInt aMyUid);
|
|
40 |
IMPORT_C void UnlockMedia(TInt aDrive, TBool aStore, TRequestStatus& aStatus);
|
|
41 |
IMPORT_C void CancelUnlockMedia();
|
|
42 |
IMPORT_C TInt EnableTaskList(TBool aEnable);
|
|
43 |
IMPORT_C TInt MakeTaskListVisible(TBool aShow);
|
|
44 |
IMPORT_C TInt UpdateTaskList();
|
|
45 |
IMPORT_C void ShutdownApps(const TUid aRequesterUID, const TInt aTimeoutInMicroseconds,
|
|
46 |
TRequestStatus& aStatus) const;
|
|
47 |
IMPORT_C void CancelShutdownApps();
|
|
48 |
// These functions are only for use by CAknSgcClient
|
|
49 |
IMPORT_C TInt SetSgcParams(TInt aWgId, TBitFlags aAppFlags, TInt aSpLayout, TInt aSpFlags);
|
|
50 |
IMPORT_C TInt SetSgcParams(TInt aWgId, TBitFlags aAppFlags, TInt aSpLayout, TInt aSpFlags,
|
|
51 |
TInt aAppScreenMode);
|
|
52 |
IMPORT_C TInt BlockServerStatusPaneRedraws();
|
|
53 |
IMPORT_C TInt RedrawServerStatusPane();
|
|
54 |
IMPORT_C TInt PrepareForAppExit(TInt aWgId);
|
|
55 |
IMPORT_C TInt SetSystemFaded(TBool aFade);
|
|
56 |
IMPORT_C TInt IsSystemFaded(TBool& aFade) const;
|
|
57 |
IMPORT_C TInt Connect();
|
|
58 |
IMPORT_C TInt RelinquishPriorityToForegroundApp();
|
|
59 |
IMPORT_C HBufC8* GetPackedConfigL() const;
|
|
60 |
IMPORT_C TInt MoveAppInZOrder(TInt aAppWindowGroupId, TBool aBackgroundOrForeground);
|
|
61 |
// Eiksrv replacements.
|
|
62 |
IMPORT_C TInt SetStatusPaneFlags(TInt aFlags) const;
|
|
63 |
IMPORT_C TInt SetStatusPaneLayout(TInt aLayoutResId) const;
|
|
64 |
IMPORT_C TInt BlankScreen() const;
|
|
65 |
IMPORT_C TInt UnblankScreen() const;
|
|
66 |
// Basic functionality, allowed for every application.
|
|
67 |
IMPORT_C TInt SetKeyboardRepeatRate(TAknDefaultKeyboardRepeatRate aRate);
|
|
68 |
IMPORT_C TInt SetKeyblockMode(TAknKeySoundOpcode aMode);
|
|
69 |
IMPORT_C TInt DoEikonServerConnect();
|
|
70 |
IMPORT_C TInt ShowKeysLockedNote(TBool& aIsKeyPadLocked);
|
|
71 |
IMPORT_C TInt ShowGlobalNoteL(const TDesC& aNoteText, TInt aGlobalNoteType);
|
|
72 |
IMPORT_C TInt StatusPaneResourceId();
|
|
73 |
IMPORT_C TInt CreateActivateViewEventL(const TVwsViewId& aViewId, TUid aCustomMessageId,
|
|
74 |
const TDesC8& aCustomMessage);
|
|
75 |
// Statuspane internal use.
|
|
76 |
IMPORT_C TInt CurrentAppStatuspaneResource();
|
|
77 |
IMPORT_C TInt SetCurrentAppStatuspaneResource(TInt aResourceId);
|
|
78 |
IMPORT_C TInt SetFgSpDataSubscriberId(TInt aId);
|
|
79 |
IMPORT_C TInt RotateScreen();
|
|
80 |
// For querying Apps key status.
|
|
81 |
IMPORT_C TBool TaskSwitchingSupressed();
|
|
82 |
// Long tap animation related.
|
|
83 |
IMPORT_C TInt ShowLongTapAnimation( const TPointerEvent& aEvent );
|
|
84 |
IMPORT_C TInt HideLongTapAnimation();
|
|
85 |
// Misc methods.
|
|
86 |
IMPORT_C TInt GetAliasKeyCode(TUint& aCode, const TKeyEvent& aKeyEvent, TEventCode aType);
|
|
87 |
IMPORT_C TInt GetPhoneIdleViewId( TVwsViewId& aViewId );
|
|
88 |
// Entry point for starter.
|
|
89 |
IMPORT_C static void StartAknCapserverL();
|
|
90 |
// Internal to eikon server (Sid-based security check will fail on any other client).
|
|
91 |
IMPORT_C TInt DoNotifierControllerCommand(TInt aNotifierControllerCommand);
|
|
92 |
|
|
93 |
/**
|
|
94 |
* Pre-allocates memory for dynamic soft note observation event.
|
|
95 |
*
|
|
96 |
* @param aNoteId Dynamic soft note id to be observed.
|
|
97 |
* @return KErrNone if succesful. Otherwise a system-wide error code.
|
|
98 |
* @internal
|
|
99 |
*/
|
|
100 |
IMPORT_C TInt PreAllocateDynamicSoftNoteEvent(TInt aNoteId);
|
|
101 |
|
|
102 |
/**
|
|
103 |
* Registers a client as an observer for dynamic soft note events.
|
|
104 |
* Method is asynchronous. Completes when soft note is accepted or canceled.
|
|
105 |
*
|
|
106 |
* @param aStatus On completion, KErrNone if successful. Otherwise a system-wide error code.
|
|
107 |
* @param aActionId On completion, a value from TAknDynamicSNoteEvent.
|
|
108 |
* @internal
|
|
109 |
*/
|
|
110 |
IMPORT_C void NotifyDynamicSoftNoteEvent(TRequestStatus& aStatus, TDes8& aActionId);
|
|
111 |
|
|
112 |
/**
|
|
113 |
* Cancels dynamic soft note observing.
|
|
114 |
* @internal
|
|
115 |
*/
|
|
116 |
IMPORT_C void CancelDynamicSoftNoteEventNotification();
|
|
117 |
|
|
118 |
/**
|
|
119 |
* Asks cap server to do discreet popup action.
|
|
120 |
* Method is asynchronous if aStatus is not NULL.
|
|
121 |
*
|
|
122 |
* @since S60 v5.2
|
|
123 |
* @internal
|
|
124 |
* @param aData Discreet popup data.
|
|
125 |
* @param aStatus Status code depending on action.
|
|
126 |
*/
|
|
127 |
IMPORT_C void DoDiscreetPopupAction(
|
|
128 |
TAknDiscreetPopupData* aData, TRequestStatus* aStatus = NULL );
|
|
129 |
|
|
130 |
|
|
131 |
/**
|
|
132 |
* Query cap server about in use global discreet popup's rectangle
|
|
133 |
*
|
|
134 |
* @return the rectangle discreet popup occupied. return TRect::EUninitialized
|
|
135 |
* if no global discreet popup displayed at present.
|
|
136 |
* @since S60 v5.2
|
|
137 |
*
|
|
138 |
*/
|
|
139 |
IMPORT_C const TRect GetInUseGlobalDiscreetPopupRect();
|
|
140 |
|
|
141 |
private:
|
|
142 |
TInt ConnectAknServer();
|
|
143 |
IMPORT_C TUid ServiceUid() const;
|
|
144 |
|
|
145 |
private:
|
|
146 |
TInt iSpare;
|
|
147 |
};
|
|
148 |
|
|
149 |
IMPORT_C TInt AknStartupApaServerProcess();
|
|
150 |
|
|
151 |
#endif // __AKN_CAP_SERVER_CLIENT__
|