homescreenapp/hsdomainmodel/inc/hsshortcutservice.h
changeset 35 f9ce957a272c
child 55 03646e8da489
equal deleted inserted replaced
5:c743ef5928ba 35:f9ce957a272c
       
     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:  Entry point for shortcut widget 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef HSSHORTCUTSERVICE_H
       
    19 #define HSSHORTCUTSERVICE_H
       
    20 
       
    21 #include <QObject>
       
    22 #include <QIcon>
       
    23 #include <QScopedPointer>
       
    24 #include <QMetaType>
       
    25 
       
    26 #include "hsdomainmodel_global.h"
       
    27 #include "hstest_global.h"
       
    28 
       
    29 HOMESCREEN_TEST_CLASS(TestRuntimeServices)
       
    30 
       
    31 class QStateMachine;
       
    32 class HsShortcutServicePrivate;
       
    33 
       
    34 class HSDOMAINMODEL_EXPORT HsShortcutService : public QObject
       
    35 {
       
    36 	Q_OBJECT
       
    37 
       
    38 public:
       
    39     static HsShortcutService *instance(QStateMachine *stateMachine = 0);
       
    40     ~HsShortcutService();
       
    41 		
       
    42 	void executeCollectionAction(int shortcutId, const QString& collectionType);
       
    43     bool isItemShortcutWidget(int itemId);
       
    44 
       
    45 private:
       
    46     HsShortcutService(QStateMachine *stateMachine, QObject *parent = 0);
       
    47 	Q_DISABLE_COPY(HsShortcutService)
       
    48 
       
    49 private:
       
    50 	QScopedPointer<HsShortcutServicePrivate> mD; 	
       
    51     static QScopedPointer<HsShortcutService> mInstance;    
       
    52     
       
    53     HOMESCREEN_TEST_FRIEND_CLASS(TestRuntimeServices)
       
    54 };
       
    55 
       
    56 Q_DECLARE_METATYPE(HsShortcutService*)
       
    57 
       
    58 #endif // HSSHORTCUTSERVICE_H