remove publish functionality
This commit is contained in:
parent
d83433557e
commit
0fa24619d4
17
package.cpp
17
package.cpp
@ -424,23 +424,6 @@ PackagePrivate &PackagePrivate::operator=(const PackagePrivate &rhs)
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
void PackagePrivate::publish(AnnouncementMethods methods)
|
|
||||||
{
|
|
||||||
if (!structure) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!service) {
|
|
||||||
service = new PlasmoidService(structure->path());
|
|
||||||
}
|
|
||||||
|
|
||||||
QString resourceName =
|
|
||||||
i18nc("%1 is the name of a plasmoid, %2 the name of the machine that plasmoid is published on",
|
|
||||||
"%1 on %2", structure->metadata().name(), QHostInfo::localHostName());
|
|
||||||
kDebug() << "publishing package under name " << resourceName;
|
|
||||||
service->d->publish(methods, resourceName, structure->metadata());
|
|
||||||
}
|
|
||||||
|
|
||||||
void PackagePrivate::unpublish()
|
void PackagePrivate::unpublish()
|
||||||
{
|
{
|
||||||
if (service) {
|
if (service) {
|
||||||
|
@ -38,7 +38,6 @@ public:
|
|||||||
|
|
||||||
PackagePrivate &operator=(const PackagePrivate &rhs);
|
PackagePrivate &operator=(const PackagePrivate &rhs);
|
||||||
|
|
||||||
void publish(AnnouncementMethods methods);
|
|
||||||
void unpublish();
|
void unpublish();
|
||||||
bool isPublished() const;
|
bool isPublished() const;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user