19
|
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 |
#ifndef CPEVENT_H
|
|
19 |
#define CPEVENT_H
|
|
20 |
|
|
21 |
#include <cpcategoryglobal.h>
|
|
22 |
#include <QString>
|
|
23 |
#include <QEvent>
|
|
24 |
|
|
25 |
class CpPluginInterface;
|
|
26 |
class HbDataFormModelItem;
|
|
27 |
class CpItemDataHelper;
|
|
28 |
|
|
29 |
class CpCreatePluginItemDataEvent : public QEvent
|
|
30 |
{
|
|
31 |
public:
|
|
32 |
enum { CreatePluginItemData = QEvent::User + 1 };
|
|
33 |
|
|
34 |
CpCreatePluginItemDataEvent() :
|
|
35 |
QEvent ( static_cast<QEvent::Type>(CreatePluginItemData) ),
|
|
36 |
mPluginInterface(0),
|
|
37 |
mParentItem(0),
|
|
38 |
mItemDataHelper(0),
|
|
39 |
mItemPosition(-1)
|
|
40 |
{
|
|
41 |
}
|
|
42 |
|
|
43 |
CpPluginInterface *mPluginInterface;
|
|
44 |
|
|
45 |
HbDataFormModelItem *mParentItem;
|
|
46 |
int mItemPosition;
|
|
47 |
|
|
48 |
CpItemDataHelper *mItemDataHelper;
|
|
49 |
|
|
50 |
QString mDisplayName;
|
|
51 |
QString mDescription;
|
|
52 |
QString mPluginFile;
|
|
53 |
};
|
|
54 |
|
|
55 |
CP_CATEGORY_EXPORT int createCpPluginItemData(CpCreatePluginItemDataEvent *event);
|
|
56 |
|
|
57 |
#endif //CPEVENT_H
|
|
58 |
|
|
59 |
//End of File
|
|
60 |
|