LeechCraft Azoth 0.6.70-14794-g33744ae6ce
Modular multiprotocol IM plugin for LeechCraft
Loading...
Searching...
No Matches
isupportgeolocation.h
Go to the documentation of this file.
1/**********************************************************************
2 * LeechCraft - modular cross-platform feature rich internet client.
3 * Copyright (C) 2006-2014 Georg Rudoy
4 *
5 * Distributed under the Boost Software License, Version 1.0.
6 * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7 **********************************************************************/
8
9#ifndef PLUGINS_AZOTH_INTERFACES_ISUPPORTGEOLOCATION_H
10#define PLUGINS_AZOTH_INTERFACES_ISUPPORTGEOLOCATION_H
11#include <QtPlugin>
12#include <QMap>
13#include <QVariant>
14
15namespace LC
16{
17namespace Azoth
18{
72 typedef QMap<QString, QVariant> GeolocationInfo_t;
73
86 {
87 public:
89
97 virtual void SetGeolocationInfo (const GeolocationInfo_t& info) = 0;
98
116 const QString& variant) const = 0;
117
132 virtual void geolocationInfoChanged (const QString& variant, QObject *entry) = 0;
133 };
134}
135}
136
137Q_DECLARE_INTERFACE (LC::Azoth::ISupportGeolocation,
138 "org.Deviant.LeechCraft.Azoth.ISupportGeolocation/1.0")
139
140#endif
Interface for accounts supporting geolocation data.
virtual void geolocationInfoChanged(const QString &variant, QObject *entry)=0
Notifies about info change of another entry.
virtual GeolocationInfo_t GetUserGeolocationInfo(QObject *entry, const QString &variant) const =0
Returns info for the given entry and variant.
virtual void SetGeolocationInfo(const GeolocationInfo_t &info)=0
Publishes the given geolocation info.
QMap< QString, QVariant > GeolocationInfo_t
Geolocation data.