dependencies/avkon_ui_server_api/akncapserverclient.h
author MattD <mattd@symbian.org>
Thu, 01 Apr 2010 14:59:15 +0100
branchv5backport
changeset 50 d717d18a59d5
parent 26 bef183758dfa
permissions -rw-r--r--
Made a minor error with all the messing around with aknlayout.lag which meant it got performed on the default branch.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
26
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
     1
/*
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
     2
* Copyright (c) 2005-2007 Nokia Corporation and/or its subsidiary(-ies).
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
     3
* All rights reserved.
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
     4
* This component and the accompanying materials are made available
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
     6
* which accompanies this distribution, and is available
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
     8
*
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
     9
* Initial Contributors:
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    11
*
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    12
* Contributors:
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    13
*
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    14
* Description:  
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    15
*
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    16
*/
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    17
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    18
#ifndef __AKN_CAP_SERVER_CLIENT__
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    19
#define __AKN_CAP_SERVER_CLIENT__
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    20
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    21
#include <babitflags.h>
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    22
#include <eikserverapp.h>
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    23
#include <aknanimdllstd.h>
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    24
#include <vwsdef.h>
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    25
#include <w32std.h>
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    26
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    27
class TAknDiscreetPopupData;
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    28
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    29
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    30
enum TAknDefaultKeyboardRepeatRate{
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    31
    EAknApplicationDefaulRepeatRate, 
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    32
    EAknEditorDefaulRepeatRate
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    33
    };
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    34
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    35
class RAknUiServer : public REikAppServiceBase 
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    36
    {
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    37
public:
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    38
    IMPORT_C TInt ConnectAndSendAppsKeySuppress(TBool aSuppress);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    39
    IMPORT_C TInt HideApplicationFromFsw(TBool aHide, TInt aMyUid);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    40
    IMPORT_C void UnlockMedia(TInt aDrive, TBool aStore, TRequestStatus& aStatus);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    41
    IMPORT_C void CancelUnlockMedia();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    42
    IMPORT_C TInt EnableTaskList(TBool aEnable);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    43
    IMPORT_C TInt MakeTaskListVisible(TBool aShow);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    44
    IMPORT_C TInt UpdateTaskList();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    45
    IMPORT_C void ShutdownApps(const TUid aRequesterUID, const TInt aTimeoutInMicroseconds, 
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    46
        TRequestStatus& aStatus) const;
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    47
    IMPORT_C void CancelShutdownApps();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    48
    // These functions are only for use by CAknSgcClient
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    49
    IMPORT_C TInt SetSgcParams(TInt aWgId, TBitFlags aAppFlags, TInt aSpLayout, TInt aSpFlags);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    50
    IMPORT_C TInt SetSgcParams(TInt aWgId, TBitFlags aAppFlags, TInt aSpLayout, TInt aSpFlags, 
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    51
        TInt aAppScreenMode);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    52
    IMPORT_C TInt BlockServerStatusPaneRedraws();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    53
    IMPORT_C TInt RedrawServerStatusPane();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    54
    IMPORT_C TInt PrepareForAppExit(TInt aWgId);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    55
    IMPORT_C TInt SetSystemFaded(TBool aFade);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    56
    IMPORT_C TInt IsSystemFaded(TBool& aFade) const;
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    57
    IMPORT_C TInt Connect();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    58
    IMPORT_C TInt RelinquishPriorityToForegroundApp();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    59
    IMPORT_C HBufC8* GetPackedConfigL() const;
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    60
    IMPORT_C TInt MoveAppInZOrder(TInt aAppWindowGroupId, TBool aBackgroundOrForeground);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    61
    // Eiksrv replacements.
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    62
    IMPORT_C TInt SetStatusPaneFlags(TInt aFlags) const;
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    63
    IMPORT_C TInt SetStatusPaneLayout(TInt aLayoutResId) const;
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    64
    IMPORT_C TInt BlankScreen() const;
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    65
    IMPORT_C TInt UnblankScreen() const;
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    66
    // Basic functionality, allowed for every application. 
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    67
    IMPORT_C TInt SetKeyboardRepeatRate(TAknDefaultKeyboardRepeatRate aRate);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    68
    IMPORT_C TInt SetKeyblockMode(TAknKeySoundOpcode aMode);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    69
    IMPORT_C TInt DoEikonServerConnect();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    70
    IMPORT_C TInt ShowKeysLockedNote(TBool& aIsKeyPadLocked);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    71
    IMPORT_C TInt ShowGlobalNoteL(const TDesC& aNoteText, TInt aGlobalNoteType);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    72
    IMPORT_C TInt StatusPaneResourceId();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    73
    IMPORT_C TInt CreateActivateViewEventL(const TVwsViewId& aViewId, TUid aCustomMessageId, 
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    74
        const TDesC8& aCustomMessage);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    75
    // Statuspane internal use.
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    76
    IMPORT_C TInt CurrentAppStatuspaneResource();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    77
    IMPORT_C TInt SetCurrentAppStatuspaneResource(TInt aResourceId);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    78
    IMPORT_C TInt SetFgSpDataSubscriberId(TInt aId);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    79
    IMPORT_C TInt RotateScreen();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    80
    // For querying Apps key status.
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    81
    IMPORT_C TBool TaskSwitchingSupressed();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    82
    // Long tap animation related.
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    83
    IMPORT_C  TInt ShowLongTapAnimation( const TPointerEvent& aEvent );
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    84
    IMPORT_C  TInt HideLongTapAnimation();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    85
    // Misc methods.
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    86
    IMPORT_C TInt GetAliasKeyCode(TUint& aCode, const TKeyEvent& aKeyEvent, TEventCode aType);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    87
    IMPORT_C TInt GetPhoneIdleViewId( TVwsViewId& aViewId );
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    88
    // Entry point for starter.
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    89
    IMPORT_C static void StartAknCapserverL();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    90
    // Internal to eikon server (Sid-based security check will fail on any other client).
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    91
    IMPORT_C TInt DoNotifierControllerCommand(TInt aNotifierControllerCommand);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    92
    
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    93
    /**
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    94
     * Pre-allocates memory for dynamic soft note observation event.
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    95
     *
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    96
     * @param aNoteId Dynamic soft note id to be observed.
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    97
     * @return KErrNone if succesful. Otherwise a system-wide error code. 
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    98
     * @internal
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    99
     */ 
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   100
    IMPORT_C TInt PreAllocateDynamicSoftNoteEvent(TInt aNoteId);    
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   101
    
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   102
    /**
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   103
     * Registers a client as an observer for dynamic soft note events.
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   104
     * Method is asynchronous. Completes when soft note is accepted or canceled.
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   105
     *
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   106
     * @param aStatus On completion, KErrNone if successful. Otherwise a system-wide error code.
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   107
     * @param aActionId On completion, a value from TAknDynamicSNoteEvent.
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   108
     * @internal
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   109
     */ 
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   110
    IMPORT_C void NotifyDynamicSoftNoteEvent(TRequestStatus& aStatus, TDes8& aActionId);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   111
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   112
    /**
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   113
     * Cancels dynamic soft note observing. 
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   114
     * @internal
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   115
     */ 
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   116
    IMPORT_C void CancelDynamicSoftNoteEventNotification();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   117
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   118
    /**
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   119
     * Asks cap server to do discreet popup action.
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   120
     * Method is asynchronous if aStatus is not NULL.
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   121
     *
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   122
     * @since S60 v5.2
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   123
         * @internal
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   124
     * @param aData Discreet popup data.
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   125
     * @param aStatus Status code depending on action.
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   126
     */
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   127
    IMPORT_C void DoDiscreetPopupAction(
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   128
            TAknDiscreetPopupData* aData, TRequestStatus* aStatus = NULL );
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   129
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   130
    
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   131
    /**
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   132
     * Query cap server about in use global discreet popup's rectangle
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   133
     * 
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   134
     * @return the rectangle discreet popup occupied. return TRect::EUninitialized 
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   135
     *         if no global discreet popup displayed at present.
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   136
     * @since  S60 v5.2
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   137
     * 
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   138
     */
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   139
    IMPORT_C const TRect GetInUseGlobalDiscreetPopupRect();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   140
    
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   141
private:
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   142
    TInt ConnectAknServer();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   143
    IMPORT_C TUid ServiceUid() const; 
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   144
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   145
private:
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   146
    TInt iSpare;
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   147
    };
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   148
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   149
IMPORT_C TInt AknStartupApaServerProcess();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   150
    
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   151
#endif // __AKN_CAP_SERVER_CLIENT__