Added some empty methods for ownCloud.
This commit is contained in:
parent
5f5e7a1f89
commit
10a135d570
@ -21,7 +21,7 @@
|
|||||||
#include "miscellaneous/application.h"
|
#include "miscellaneous/application.h"
|
||||||
#include "miscellaneous/iconfactory.h"
|
#include "miscellaneous/iconfactory.h"
|
||||||
#include "services/owncloud/definitions.h"
|
#include "services/owncloud/definitions.h"
|
||||||
|
#include "services/owncloud/owncloudserviceroot.h"
|
||||||
|
|
||||||
OwnCloudServiceEntryPoint::OwnCloudServiceEntryPoint() {
|
OwnCloudServiceEntryPoint::OwnCloudServiceEntryPoint() {
|
||||||
}
|
}
|
||||||
@ -31,6 +31,12 @@ OwnCloudServiceEntryPoint::~OwnCloudServiceEntryPoint() {
|
|||||||
|
|
||||||
ServiceRoot *OwnCloudServiceEntryPoint::createNewRoot() const {
|
ServiceRoot *OwnCloudServiceEntryPoint::createNewRoot() const {
|
||||||
// TODO: TODO
|
// TODO: TODO
|
||||||
|
//QPointer<FormEditAccount> form_acc = new FormEditAccount(qApp->mainForm());
|
||||||
|
//OwnCloudServiceRoot *new_root = form_acc.data()->execForCreate();
|
||||||
|
//delete form_acc.data();
|
||||||
|
|
||||||
|
//return new_root;
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,6 +26,22 @@ OwnCloudServiceRoot::OwnCloudServiceRoot(RootItem *parent) : ServiceRoot(parent)
|
|||||||
OwnCloudServiceRoot::~OwnCloudServiceRoot() {
|
OwnCloudServiceRoot::~OwnCloudServiceRoot() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool OwnCloudServiceRoot::canBeEdited() const {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool OwnCloudServiceRoot::canBeDeleted() const {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool OwnCloudServiceRoot::editViaGui() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool OwnCloudServiceRoot::deleteViaGui() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
bool OwnCloudServiceRoot::supportsFeedAdding() const {
|
bool OwnCloudServiceRoot::supportsFeedAdding() const {
|
||||||
// TODO: TODO
|
// TODO: TODO
|
||||||
return false;
|
return false;
|
||||||
|
@ -26,6 +26,11 @@ class OwnCloudServiceRoot : public ServiceRoot {
|
|||||||
explicit OwnCloudServiceRoot(RootItem *parent = NULL);
|
explicit OwnCloudServiceRoot(RootItem *parent = NULL);
|
||||||
virtual ~OwnCloudServiceRoot();
|
virtual ~OwnCloudServiceRoot();
|
||||||
|
|
||||||
|
bool canBeEdited() const;
|
||||||
|
bool canBeDeleted() const;
|
||||||
|
bool editViaGui();
|
||||||
|
bool deleteViaGui();
|
||||||
|
|
||||||
bool supportsFeedAdding() const;
|
bool supportsFeedAdding() const;
|
||||||
bool supportsCategoryAdding() const;
|
bool supportsCategoryAdding() const;
|
||||||
|
|
||||||
|
@ -72,11 +72,8 @@ QString TtRssServiceEntryPoint::code() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ServiceRoot *TtRssServiceEntryPoint::createNewRoot() const {
|
ServiceRoot *TtRssServiceEntryPoint::createNewRoot() const {
|
||||||
QPointer<FormEditAccount> form_acc = new FormEditAccount(qApp->mainForm());
|
QScopedPointer<FormEditAccount> form_acc(new FormEditAccount(qApp->mainForm()));
|
||||||
TtRssServiceRoot *new_root = form_acc.data()->execForCreate();
|
return form_acc->execForCreate();
|
||||||
delete form_acc.data();
|
|
||||||
|
|
||||||
return new_root;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QList<ServiceRoot*> TtRssServiceEntryPoint::initializeSubtree() const {
|
QList<ServiceRoot*> TtRssServiceEntryPoint::initializeSubtree() const {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user