Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ssu] Provide list repos over dbus. Fixes MER#1933 See merge request mer-core/ssu!21
- Loading branch information
Showing
9 changed files
with
79 additions
and
19 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
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
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,32 @@ | ||
#ifndef SSUD_INCLUDE_H | ||
#define SSUD_INCLUDE_H | ||
|
||
#include <QDBusArgument> | ||
#include <QString> | ||
#include <QVariantMap> | ||
|
||
struct SsuRepo { | ||
QString name; | ||
QString url; | ||
QVariantMap parameters; | ||
}; | ||
|
||
inline QDBusArgument &operator<<(QDBusArgument &argument, const SsuRepo &myRepo) | ||
{ | ||
argument.beginStructure(); | ||
argument << myRepo.name << myRepo.url << myRepo.parameters; | ||
argument.endStructure(); | ||
return argument; | ||
} | ||
|
||
inline const QDBusArgument &operator>>(const QDBusArgument &argument, SsuRepo &myRepo) | ||
{ | ||
argument.beginStructure(); | ||
argument >> myRepo.name >> myRepo.url >> myRepo.parameters; | ||
argument.endStructure(); | ||
return argument; | ||
} | ||
|
||
Q_DECLARE_METATYPE(SsuRepo) | ||
|
||
#endif // SSUD_INCLUDE_H |