hs_app_idlefw/plugins/devicestatus/inc/hs_app_aimulticontentobserver.h
author fdim
Wed, 31 Mar 2010 12:29:10 +0300
branchv5backport
changeset 43 690b4f151c12
permissions -rw-r--r--
Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited). homescreen_srv compiles with these changes. Although more warnings appear. Also I've changed uid of homescreen.exe, ailaunch.exe. Renamed idlefw files, located in hs_app_idlefw.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
43
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
     1
/*
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
     2
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
     3
* All rights reserved.
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
     4
* This component and the accompanying materials are made available
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
     6
* which accompanies this distribution, and is available
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
     8
*
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
     9
* Initial Contributors:
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    11
*
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    12
* Contributors:
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    13
*
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    14
* Description:  Active Idle Content Observer interface multiplexer interface.
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    15
*
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    16
*/
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    17
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    18
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    19
#ifndef C_AIMULTICONTENTOBSERVER_H
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    20
#define C_AIMULTICONTENTOBSERVER_H
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    21
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    22
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    23
#include <e32base.h>
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    24
#include "aicontentobserver.h"
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    25
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    26
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    27
// Forward declarations
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    28
class CAiContentObserverOptimizer;
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    29
/**
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    30
 *  @ingroup group_devicestatusplugin
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    31
 *
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    32
 * Active Idle Content Observer interface multiplexer.
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    33
 *
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    34
 * @see MAiContentObserver
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    35
 * @since S60 3.2
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    36
 */
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    37
class CAiMultiContentObserver : 
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    38
        public CBase,
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    39
        public MAiContentObserver
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    40
    {
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    41
public:
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    42
    static CAiMultiContentObserver* NewL();
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    43
    ~CAiMultiContentObserver();
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    44
    
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    45
    /**
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    46
     * Adds a new observer to this multiplexer.
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    47
     */
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    48
    void AddObserverL(MAiContentObserver& aObserver);
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    49
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    50
//from base class MAiContentObserver
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    51
    TInt StartTransaction( TInt aTxId );
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    52
    TInt Commit( TInt aTxId );
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    53
    TInt CancelTransaction( TInt aTxId );
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    54
    TBool CanPublish( MAiPropertyExtension& aPlugin, TInt aContent, TInt aIndex );
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    55
    TInt Publish( MAiPropertyExtension& aPlugin, TInt aContent,
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    56
                  TInt aResource, TInt aIndex );
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    57
    TInt Publish( MAiPropertyExtension& aPlugin, TInt aContent,
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    58
                  const TDesC16& aText, TInt aIndex );
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    59
    TInt Publish( MAiPropertyExtension& aPlugin, TInt aContent,
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    60
                  const TDesC8& aBuf, TInt aIndex );
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    61
    TInt Publish( MAiPropertyExtension& aPlugin, TInt aContent,
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    62
                  RFile& aFile, TInt aIndex );
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    63
    TInt Clean( MAiPropertyExtension& aPlugin, TInt aContent, TInt aIndex );
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    64
    TAny* Extension( TUid aUid );
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    65
    TBool RequiresSubscription( const TAiPublisherInfo& aPublisherInfo ) const;
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    66
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    67
    TInt SetProperty( MAiPropertyExtension& aPlugin,
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    68
               const TDesC8& aElementId,
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    69
               const TDesC8& aPropertyName,
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    70
               const TDesC8& aPropertyValue );
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    71
       
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    72
    TInt SetProperty( MAiPropertyExtension& aPlugin,
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    73
               const TDesC8& aElementId,
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    74
               const TDesC8& aPropertyName,
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    75
               const TDesC8& aPropertyValue,  
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    76
               MAiContentObserver::TValueType aValueType);
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    77
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    78
private:
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    79
    CAiMultiContentObserver();
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    80
    void ConstructL();
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    81
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    82
private: // data
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    83
    /**
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    84
     * Array of observers.
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    85
     * Own.
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    86
     */
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    87
    RPointerArray<CAiContentObserverOptimizer> iObserverOptimizers;
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    88
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    89
    };
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    90
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    91
690b4f151c12 Added folder hs_app_idlefw, files there have 'hs_app' prefix(content edited).
fdim
parents:
diff changeset
    92
#endif // C_AIMULTICONTENTOBSERVER_H