13 * |
13 * |
14 * You should have received a copy of the GNU Lesser General Public License |
14 * You should have received a copy of the GNU Lesser General Public License |
15 * along with this program. If not, |
15 * along with this program. If not, |
16 * see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". |
16 * see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". |
17 * |
17 * |
18 * Description: |
18 * Description: This class implements a plugin handle. |
19 * |
19 * |
20 */ |
20 */ |
21 |
21 |
22 #include "xqpluginhandle.h" |
22 #include "xqpluginhandle.h" |
23 #include <ecom/ecom.h> |
23 #include <ecom/ecom.h> |
24 |
24 |
25 // ----------------------------------------------------------------------------- |
25 /*! |
26 // QPluginHandle |
26 QPluginHandle. |
27 // ----------------------------------------------------------------------------- |
27 */ |
28 // |
|
29 XQPluginHandle::XQPluginHandle(int contextId, QObject* parentPtr) |
28 XQPluginHandle::XQPluginHandle(int contextId, QObject* parentPtr) |
30 : |
29 : |
31 QObject(parentPtr), |
30 QObject(parentPtr), |
32 pluginContextId(contextId) |
31 pluginContextId(contextId) |
33 { |
32 { |
34 //No implementation required |
33 //No implementation required |
35 } |
34 } |
36 |
35 |
37 // ----------------------------------------------------------------------------- |
36 /*! |
38 // ~QPluginHandle |
37 ~QPluginHandle. |
39 // ----------------------------------------------------------------------------- |
38 */ |
40 // |
|
41 XQPluginHandle::~XQPluginHandle() |
39 XQPluginHandle::~XQPluginHandle() |
42 { |
40 { |
43 if( KNullUid != TUid::Uid(pluginContextId) ){ |
41 if( KNullUid != TUid::Uid(pluginContextId) ){ |
44 REComSession::DestroyedImplementation( TUid::Uid( pluginContextId ) ); |
42 REComSession::DestroyedImplementation( TUid::Uid( pluginContextId ) ); |
45 } |
43 } |