tsdevicedialog/tsdevicedialogplugin/tsrc/mocks/mocktstask.cpp
changeset 117 c63ee96dbe5f
equal deleted inserted replaced
115:3ab5c078b490 117:c63ee96dbe5f
       
     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 #include "mocktstask.h"
       
    18 
       
    19 TsTaskContent::TsTaskContent(const QString &name, bool closable, bool active) : mName(name), mClosable(closable), mActive(active) 
       
    20 {
       
    21 }
       
    22 
       
    23 TsTask::TsTask(TsTaskContent *content, TsTaskLauncher &launcher) : mContent(content), mLauncher(launcher)
       
    24 {
       
    25 }
       
    26 
       
    27 TsTask::~TsTask()
       
    28 {
       
    29     delete mContent;
       
    30 }
       
    31 
       
    32 bool TsTask::isClosable() const
       
    33 {   
       
    34     return mContent->mClosable;
       
    35 }
       
    36 
       
    37 bool TsTask::isActive() const
       
    38 {   
       
    39     return mContent->mActive;
       
    40 }
       
    41 
       
    42 QPixmap TsTask::screenshot() const
       
    43 {
       
    44     return QPixmap();
       
    45 }
       
    46 
       
    47 QString TsTask::name() const 
       
    48 {
       
    49     return mContent->mName;
       
    50 }
       
    51 
       
    52 void TsTask::open()
       
    53 {
       
    54 }
       
    55 
       
    56 void TsTask::close()
       
    57 {
       
    58 }