activityfw/activityserviceplugin/src/applicationlauncher.cpp
changeset 80 397d00875918
equal deleted inserted replaced
73:4bc7b118b3df 80:397d00875918
       
     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:
       
    15 *
       
    16 */
       
    17 
       
    18 #include "applicationlauncher.h"
       
    19 #include "applicationlauncher_p.h"
       
    20 
       
    21 ApplicationLauncher::ApplicationLauncher() : d_ptr(new ApplicationLauncherPrivate())
       
    22 {
       
    23 }
       
    24 
       
    25 ApplicationLauncher::~ApplicationLauncher()
       
    26 {
       
    27     delete d_ptr;
       
    28 }
       
    29 
       
    30 bool ApplicationLauncher::isRunning(int applicationId)
       
    31 {
       
    32     return d_ptr->isRunning(applicationId);
       
    33 }
       
    34 
       
    35 void ApplicationLauncher::startApplication(int applicationId, const QUrl &uri)
       
    36 {
       
    37     d_ptr->startApplication(applicationId, uri);
       
    38 }
       
    39 
       
    40 void ApplicationLauncher::bringToForeground(int applicationId)
       
    41 {
       
    42     d_ptr->bringToForeground(applicationId);
       
    43 }