LeechCraft Azoth  0.6.70-15082-g543737046d
Modular multiprotocol IM plugin for LeechCraft
iurihandler.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_IURIHANDLER_H
10 #define PLUGINS_AZOTH_INTERFACES_IURIHANDLER_H
11 #include <QUrl>
12 #include <QObject>
13 
14 namespace LC
15 {
16 namespace Azoth
17 {
32  class IURIHandler
33  {
34  public:
35  virtual ~IURIHandler () {}
36 
44  virtual bool SupportsURI (const QUrl& uri) const = 0;
45 
55  virtual void HandleURI (const QUrl& uri, QObject *asAccount) = 0;
56  };
57 }
58 }
59 
60 Q_DECLARE_INTERFACE (LC::Azoth::IURIHandler,
61  "org.Deviant.LeechCraft.Azoth.IURIHandler/1.0")
62 
63 #endif
LC::Azoth::IURIHandler::~IURIHandler
virtual ~IURIHandler()
Definition: iurihandler.h:53
LC::Azoth::IURIHandler::SupportsURI
virtual bool SupportsURI(const QUrl &uri) const =0
Queries whether the given URI is supported.
LC::Azoth::IURIHandler
This interface is for protocols that may handle URIs and corresponding actions are dependent on an ex...
Definition: iurihandler.h:44
LC::Azoth::IURIHandler::HandleURI
virtual void HandleURI(const QUrl &uri, QObject *asAccount)=0
Asks to handle the given URI by the given account.
LC
Definition: activityinfo.h:13