javamanager/javacaptain/extensionplugins/autostarter/inc/autostarter.h
changeset 35 85266cc22c7f
child 48 e0d6e9bd3ca7
equal deleted inserted replaced
26:dc7c549001d5 35:85266cc22c7f
       
     1 /*
       
     2 * Copyright (c) 2010 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:  autostarter is Java Captain Symbian plugin that starts
       
    15 *               auto start Java applications after they have been installed
       
    16 *               and when the device boots.
       
    17 *
       
    18 */
       
    19 
       
    20 #ifndef AUTOSTARTER_H
       
    21 #define AUTOSTARTER_H
       
    22 
       
    23 #include "javaosheaders.h"
       
    24 
       
    25 #include "eventconsumerinterface.h"
       
    26 #include "extensionplugininterface.h"
       
    27 
       
    28 namespace java
       
    29 {
       
    30 
       
    31 namespace captain
       
    32 {
       
    33 
       
    34 class CoreInterface;
       
    35 
       
    36 OS_NONSHARABLE_CLASS(AutoStarter) :  public EventConsumerInterface,
       
    37         public ExtensionPluginInterface
       
    38 {
       
    39 public:
       
    40     AutoStarter();
       
    41     virtual ~AutoStarter();
       
    42 
       
    43     // PluginInterface
       
    44     virtual void startPlugin(CoreInterface* aCore);
       
    45     virtual void stopPlugin();
       
    46 
       
    47     // EventConsumerInterface
       
    48     virtual void event(const std::string& eventProvider,
       
    49                        java::comms::CommsMessage& aMsg);
       
    50 
       
    51     // ExtensionPluginInterface methods
       
    52     virtual EventConsumerInterface* getEventConsumer();
       
    53 
       
    54 private:
       
    55     bool startMIDletL(const std::wstring& aUid);
       
    56     void checkMIDletsToBeStartedL();
       
    57 
       
    58     CoreInterface* mCore;
       
    59 };
       
    60 
       
    61 } // namespace captain
       
    62 } // namespace java
       
    63 
       
    64 #endif // AUTOSTARTER_H