Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ssu] Use SsuRepo struct for listRepos
- Loading branch information
Andrey Kozhevnikov
committed
Jul 11, 2018
1 parent
4b60d6d
commit f10a500
Showing
8 changed files
with
52 additions
and
15 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
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 |
This file was deleted.
Oops, something went wrong.