javamanager/javacaptain/inc.linux/pmc.h
branchRCL_3
changeset 14 04becd199f91
equal deleted inserted replaced
13:f5050f1da672 14:04becd199f91
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Pmc
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef PMC_H
       
    19 #define PMC_H
       
    20 
       
    21 #include "pmcinterface.h"
       
    22 
       
    23 namespace java
       
    24 {
       
    25 
       
    26 namespace captain
       
    27 {
       
    28 class CoreInterface;
       
    29 class ProcessManagementEventsInterface;
       
    30 
       
    31 class Pmc : public PmcInterface
       
    32 {
       
    33 public:
       
    34     Pmc();
       
    35     virtual ~Pmc();
       
    36 
       
    37     bool start(CoreInterface* aCore,
       
    38                ProcessManagementEventsInterface* aProcessManagementEventsDispatcher);
       
    39     bool stop();
       
    40 
       
    41     // PmcInterface
       
    42     virtual int launch(const cmdLine_t& cmdLine, const int& options);
       
    43     virtual int terminate(const int& pid);
       
    44     virtual int kill(const int& pid);
       
    45 };
       
    46 
       
    47 } // namespace captain
       
    48 } // namespace java
       
    49 
       
    50 #endif // PMC_H
       
    51