Initial Commit.
[onlineservices] / onlineservicesplugin.cpp
1 #include "onlineservicesplugin.h"
2 #include "loginwindow.h"
3
4 onlineServicesPlugin::onlineServicesPlugin()
5 {
6     name = "Online Services";
7     window = 0;
8 }
9 onlineServicesPlugin::~onlineServicesPlugin()
10 {
11     delete window;
12     window = 0;
13 }
14
15 void onlineServicesPlugin::setDocument(void *doc)
16 {
17     Q_UNUSED(doc);
18 }
19
20 QWidget *onlineServicesPlugin::view()
21 {
22     window = new LoginWindow();
23     return window;
24 }
25
26 QString onlineServicesPlugin::pluginName()
27 {
28     return name;
29 }
30
31 QStringList onlineServicesPlugin::pluginSupportTypes()
32 {
33     QStringList types;
34     types << "All";
35     return types;
36 }
37
38 Q_EXPORT_PLUGIN2(OnlineServicesPlugin, onlineServicesPlugin)