Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[transfer-engine] Add TransferPluginInfo metadata and provide access …
…via D-Bus API. Contributes to JB#45043 This allows plugins to provide custom extensible metadata.
- Loading branch information
Bea Lam
committed
Nov 18, 2019
1 parent
a57767c
commit 95c3900
Showing
8 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Copyright (c) 2019 Open Mobile Platform LLC. | ||
* | ||
* All rights reserved. | ||
* | ||
* This file is part of Sailfish Transfer Engine package. | ||
* | ||
* You may use this file under the terms of the GNU Lesser General | ||
* Public License version 2.1 as published by the Free Software Foundation | ||
* and appearing in the file license.lgpl included in the packaging | ||
* of this file. | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License version 2.1 as published by the Free Software Foundation | ||
* and appearing in the file license.lgpl included in the packaging | ||
* of this file. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
*/ | ||
|
||
#include "transferplugininfo.h" | ||
|
||
QVariantMap TransferPluginInfo::metaData() const | ||
{ | ||
return property("_nemo_transferplugininfo_capabilities").toMap(); | ||
} | ||
|
||
void TransferPluginInfo::setMetaData(const QVariantMap &metaData) | ||
{ | ||
setProperty("_nemo_transferplugininfo_capabilities", metaData); | ||
} | ||
|
||
void TransferPluginInfo::registerType() | ||
{ | ||
qDBusRegisterMetaType<QList<QVariantMap> >(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters