homescreenapp/hsdomainmodel/tsrc/t_hsdomainmodel/src/testshortcutservice.cpp
changeset 90 3ac3aaebaee5
equal deleted inserted replaced
86:e4f038c420f7 90:3ac3aaebaee5
       
     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 <QStateMachine>
       
    19 
       
    20 #include "hsshortcutservice.h"
       
    21 #include "hsshortcutservice_p.h"
       
    22 #include "t_hsdomainmodel.h"
       
    23 
       
    24 
       
    25 // ---------------------------------------------------------------------------
       
    26 // ---------------------------------------------------------------------------
       
    27 //
       
    28 void TestHsDomainModel::testShortcutService()
       
    29 {
       
    30     QStateMachine *machine = new QStateMachine;
       
    31     
       
    32     HsShortcutService *scService = HsShortcutService::instance(machine);
       
    33 
       
    34     QCOMPARE(scService->isItemShortcutWidget(0), false);
       
    35 
       
    36     QVERIFY(HsShortcutService::instance());
       
    37 
       
    38     scService->executeCollectionAction(0, QString(""));//how to test this?  
       
    39     delete machine;
       
    40 }