homescreenapp/stateplugins/hsmenuworkerstateplugin/tsrc/t_hsmenuworkerstateplugin/inc/t_hsshortcutservice.h
changeset 90 3ac3aaebaee5
child 97 66b5fe3c07fd
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 #ifndef T_HSSHORTCUTSERVICE_H
       
    18 #define T_HSSHORTCUTSERVICE_H
       
    19 #include <QObject>
       
    20 #include <QIcon>
       
    21 #include <QSharedPointer>
       
    22 #include <QMetaType>
       
    23 
       
    24 #include "hsdomainmodel_global.h"
       
    25 
       
    26 class QStateMachine;
       
    27 
       
    28 class HsShortcutService : public QObject
       
    29 {
       
    30     Q_OBJECT
       
    31 
       
    32 public:
       
    33     ~HsShortcutService();
       
    34     static QSharedPointer<HsShortcutService> instance(QStateMachine *machine = 0);
       
    35 
       
    36     void executeCollectionAction(int shortcutId, QString collectionType);
       
    37     bool isItemShortcutWidget(int aItemId);
       
    38 
       
    39 private:
       
    40     HsShortcutService(QStateMachine *aStateMachine, QObject *parent = 0);
       
    41 
       
    42     Q_DISABLE_COPY(HsShortcutService)
       
    43 
       
    44 
       
    45 private:
       
    46 };
       
    47 
       
    48 Q_DECLARE_METATYPE(HsShortcutService *)
       
    49 
       
    50 #endif // T_HSSHORTCUTSERVICE_H