LeechCraft Azoth  0.6.70-15082-g543737046d
Modular multiprotocol IM plugin for LeechCraft
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 
15 namespace LC
16 {
17 namespace Azoth
18 {
72  typedef QMap<QString, QVariant> GeolocationInfo_t;
73 
85  class ISupportGeolocation
86  {
87  public:
88  virtual ~ISupportGeolocation () {}
89 
97  virtual void SetGeolocationInfo (const GeolocationInfo_t& info) = 0;
98 
115  virtual GeolocationInfo_t GetUserGeolocationInfo (QObject *entry,
116  const QString& variant) const = 0;
117 
132  virtual void geolocationInfoChanged (const QString& variant, QObject *entry) = 0;
133  };
134 }
135 }
136 
137 Q_DECLARE_INTERFACE (LC::Azoth::ISupportGeolocation,
138  "org.Deviant.LeechCraft.Azoth.ISupportGeolocation/1.0")
139 
140 #endif
LC::Azoth::ISupportGeolocation::SetGeolocationInfo
virtual void SetGeolocationInfo(const GeolocationInfo_t &info)=0
Publishes the given geolocation info.
LC::Azoth::ISupportGeolocation::GetUserGeolocationInfo
virtual GeolocationInfo_t GetUserGeolocationInfo(QObject *entry, const QString &variant) const =0
Returns info for the given entry and variant.
LC::Azoth::GeolocationInfo_t
QMap< QString, QVariant > GeolocationInfo_t
Geolocation data.
Definition: isupportgeolocation.h:84
LC::Azoth::ISupportGeolocation
Interface for accounts supporting geolocation data.
Definition: isupportgeolocation.h:97
LC
Definition: activityinfo.h:13
LC::Azoth::ISupportGeolocation::geolocationInfoChanged
virtual void geolocationInfoChanged(const QString &variant, QObject *entry)=0
Notifies about info change of another entry.
LC::Azoth::ISupportGeolocation::~ISupportGeolocation
virtual ~ISupportGeolocation()
Definition: isupportgeolocation.h:100