homescreenapp/serviceproviders/hsmenuserviceprovider/inc/hsmenuentryremovedhandler.h
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 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 removal handler. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef HS_MENU_ENTRY_REMOVED_HANDLER_H |
|
20 #define HS_MENU_ENTRY_REMOVED_HANDLER_H |
|
21 |
|
22 #include <QScopedPointer> |
|
23 |
|
24 #include <cadefs.h> |
|
25 #include <canotifier.h> |
|
26 |
|
27 #include "hsmenuservice_global.h" |
|
28 |
|
29 class MENUSERVICE_EXPORT HsMenuEntryRemovedHandler: public QObject |
|
30 { |
|
31 Q_OBJECT |
|
32 public: |
|
33 HsMenuEntryRemovedHandler( |
|
34 int entryId, QObject *receiver, const char *callback); |
|
35 virtual ~HsMenuEntryRemovedHandler(); |
|
36 |
|
37 signals: |
|
38 void notify(); |
|
39 private slots: |
|
40 virtual void entryChanged(int entryId, ChangeType changeType); |
|
41 |
|
42 private: |
|
43 void subscribe(int entryId); |
|
44 |
|
45 private: |
|
46 QScopedPointer<CaNotifier> mNotifier; |
|
47 }; |
|
48 #endif |