javamanager/debugapi/src.s60/appinstaller.h
branchRCL_3
changeset 19 04becd199f91
equal deleted inserted replaced
16:f5050f1da672 19:04becd199f91
       
     1 /*
       
     2 * Copyright (c) 2009 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: AppInstaller takes care of installing Java application
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef APPINSTALLER_H
       
    20 #define APPINSTALLER_H
       
    21 
       
    22 #include <string>
       
    23 #include <list>
       
    24 
       
    25 #include "installoperation.h"
       
    26 #include "javaosheaders.h"
       
    27 #include "javauid.h"
       
    28 using java::util::Uid;
       
    29 
       
    30 namespace java
       
    31 {
       
    32 namespace debug
       
    33 {
       
    34 OS_NONSHARABLE_CLASS(AppInstaller) : public InstallOperation
       
    35 {
       
    36 public:
       
    37     AppInstaller(const std::wstring& aFilename);
       
    38     virtual ~AppInstaller();
       
    39 
       
    40     int install();
       
    41     Uid getSuiteUid() const;
       
    42     std::list<Uid> getAppUids() const;
       
    43 
       
    44 protected:
       
    45     virtual CommsMessage getNextOperation();
       
    46     virtual void handleOperationResult(CommsMessage& aMessage);
       
    47 
       
    48 private:
       
    49     const std::wstring mFilename;
       
    50     Uid mSuiteUid;
       
    51     std::list<Uid> mAppUids;
       
    52 
       
    53     bool mInstallDone;
       
    54     int mInstallResult;
       
    55 };
       
    56 
       
    57 } // end namespace debug
       
    58 } // end namespace java
       
    59 
       
    60 
       
    61 #endif // APPINSTALLER_H