|
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 "mpxplugindata.h" |
|
19 |
|
20 // ----------------------------------------------------------------------------- |
|
21 // MpxPluginData |
|
22 // ----------------------------------------------------------------------------- |
|
23 // |
|
24 MpxPluginData::MpxPluginData() |
|
25 : |
|
26 pluginId( 0 ), |
|
27 pluginType( 0 ), |
|
28 pluginPriority( EMPXViewPluginPriorityLowest ), |
|
29 pluginSupportedId() |
|
30 { |
|
31 // No implementation required |
|
32 } |
|
33 |
|
34 // ----------------------------------------------------------------------------- |
|
35 // ~MpxPluginData |
|
36 // ----------------------------------------------------------------------------- |
|
37 // |
|
38 MpxPluginData::~MpxPluginData() |
|
39 { |
|
40 pluginSupportedId.clear(); |
|
41 } |
|
42 |
|
43 // ----------------------------------------------------------------------------- |
|
44 // id |
|
45 // ----------------------------------------------------------------------------- |
|
46 // |
|
47 int MpxPluginData::id()const |
|
48 { |
|
49 return pluginId; |
|
50 } |
|
51 |
|
52 // ----------------------------------------------------------------------------- |
|
53 // type |
|
54 // ----------------------------------------------------------------------------- |
|
55 // |
|
56 int MpxPluginData::type()const |
|
57 { |
|
58 return pluginType; |
|
59 } |
|
60 |
|
61 // ----------------------------------------------------------------------------- |
|
62 // priority |
|
63 // ----------------------------------------------------------------------------- |
|
64 // |
|
65 MpxPluginData::TMPXViewPluginPriorities MpxPluginData::priority() const |
|
66 { |
|
67 return pluginPriority; |
|
68 } |
|
69 |
|
70 // ----------------------------------------------------------------------------- |
|
71 // supportedId |
|
72 // ----------------------------------------------------------------------------- |
|
73 // |
|
74 const QList<int>& MpxPluginData::supportedId() const |
|
75 { |
|
76 return pluginSupportedId; |
|
77 } |
|
78 |
|
79 // ----------------------------------------------------------------------------- |
|
80 // setId |
|
81 // ----------------------------------------------------------------------------- |
|
82 // |
|
83 void MpxPluginData::setId( int value ) |
|
84 { |
|
85 pluginId = value; |
|
86 } |
|
87 |
|
88 // ----------------------------------------------------------------------------- |
|
89 // setId |
|
90 // ----------------------------------------------------------------------------- |
|
91 // |
|
92 void MpxPluginData::setType( int value ) |
|
93 { |
|
94 pluginType = value; |
|
95 } |
|
96 |
|
97 // ----------------------------------------------------------------------------- |
|
98 // setType |
|
99 // ----------------------------------------------------------------------------- |
|
100 // |
|
101 void MpxPluginData::setPriority( TMPXViewPluginPriorities value ) |
|
102 { |
|
103 pluginPriority = value; |
|
104 } |
|
105 |
|
106 // ----------------------------------------------------------------------------- |
|
107 // addSupportedId |
|
108 // ----------------------------------------------------------------------------- |
|
109 // |
|
110 void MpxPluginData::addSupportedId( int value ) |
|
111 { |
|
112 pluginSupportedId.append( value ); |
|
113 } |