dependencies/GSLauncher.h
author Kir?ly J?zsef <fonix232@gmail.com>
Mon, 24 May 2010 17:34:06 +0200
branchv5backport
changeset 77 a5edac421fbd
parent 58 d017f79b1bb1
permissions -rw-r--r--
Added missing libraries, except scppnwdl.dll Source: Symbian^3 PDK 3.0.i
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
58
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
     1
/*
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
     2
* Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
     3
* All rights reserved.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
     4
* This component and the accompanying materials are made available
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
     6
* which accompanies this distribution, and is available
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
     8
*
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
     9
* Initial Contributors:
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    11
*
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    12
* Contributors:
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    13
*
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    14
* Description:   Launches GS views.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    15
*
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    16
*/
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    17
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    18
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    19
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    20
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    21
#ifndef C_GSLAUNCHER_H
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    22
#define C_GSLAUNCHER_H
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    23
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    24
#include <e32std.h>
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    25
#include <e32def.h>
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    26
#include <apgtask.h>
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    27
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    28
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    29
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    30
class CGSLauncherExtension;
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    31
/**
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    32
 *  Launches general settings with specific plug-in opened.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    33
 *  Using this API, a client may request a general settings view to be shown.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    34
 *  Implementation will launch general settings if it is not yet running. 
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    35
 *
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    36
 *  Example usage of the interface:
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    37
 *  @code
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    38
 *   CGSLauncher* l = CGSLauncher::NewLC();
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    39
 *   l->LaunchGSViewL ( yourPluginUid, TUid::Uid(0), KNullDesC8 ); 
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    40
 *   CleanupStack::PopAndDestroy(l);
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    41
 *  @endcode
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    42
 *
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    43
 *  @lib gslauncher.lib
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    44
 *  @since S60 5.0
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    45
 */
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    46
NONSHARABLE_CLASS(CGSLauncher) : public CBase
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    47
    {
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    48
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    49
public:
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    50
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    51
    /**
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    52
     * Two-phased constructors.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    53
     */
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    54
    IMPORT_C static CGSLauncher* NewL();
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    55
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    56
    IMPORT_C static CGSLauncher* NewLC();
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    57
    
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    58
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    59
    /**
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    60
    * Destructor.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    61
    */
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    62
    virtual ~CGSLauncher();
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    63
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    64
    /**
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    65
     * Launches general settings with specific plug-in activated.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    66
     * Launching of plug-in's local views is not supported. 
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    67
     * General settings application is started if it's not running. 
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    68
     * Any application embedded into general settings will be closed.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    69
     *
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    70
     * Needs capability: SwEvent
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    71
     * 
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    72
     * @since S60 5.0
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    73
     * @param aTarget 					Target plug-in's view id. (CAknView::Id())
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    74
     * @param aCustomMessageId  For client data. Passed to the plug-in.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    75
     * @param aCustomMessage  	For client data. Passed to the plug-in.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    76
     * @return none
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    77
     */
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    78
	IMPORT_C void LaunchGSViewL( const TUid aTarget,const TUid aCustomMessageId
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    79
			,const TDesC8& aCustomMessage );
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    80
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    81
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    82
protected:
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    83
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    84
private:
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    85
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    86
    CGSLauncher();
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    87
    
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    88
    void ConstructL();
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    89
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    90
private: // data
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    91
		CGSLauncherExtension* iExt;
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    92
    };
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    93
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    94
#endif // C_GSLAUNCHER_H