37
cuc::Peer default_peer_for_type(cuc::Type type);
38
void enumerate_known_peers_for_type(cuc::Type type, const std::function<void(const cuc::Peer&)>& for_each);
36
cuc::Peer default_source_for_type(cuc::Type type);
39
37
void enumerate_known_peers(const std::function<void(const cuc::Peer&)>& for_each);
40
bool install_default_peer_for_type(cuc::Type type, cuc::Peer peer);
41
bool install_peer_for_type(cuc::Type type, cuc::Peer peer);
38
void enumerate_known_sources_for_type(cuc::Type type, const std::function<void(const cuc::Peer&)>& for_each);
39
void enumerate_known_destinations_for_type(cuc::Type type, const std::function<void(const cuc::Peer&)>& for_each);
40
void enumerate_known_shares_for_type(cuc::Type type, const std::function<void(const cuc::Peer&)>& for_each);
41
bool install_default_source_for_type(cuc::Type type, cuc::Peer peer);
42
bool install_source_for_type(cuc::Type type, cuc::Peer peer);
43
bool install_destination_for_type(cuc::Type type, cuc::Peer peer);
44
bool install_share_for_type(cuc::Type type, cuc::Peer peer);
42
45
bool remove_peer(cuc::Peer peer);
45
QScopedPointer<QGSettings> m_defaultPeers;
46
QScopedPointer<QGSettings> m_peers;
48
QScopedPointer<QGSettings> m_defaultSources;
49
QScopedPointer<QGSettings> m_sources;
50
QScopedPointer<QGSettings> m_dests;
51
QScopedPointer<QGSettings> m_shares;
49
54
#endif // REGISTRY_H