LeechCraft Azoth 0.6.70-17609-g3dde4097dd
Modular multiprotocol IM plugin for LeechCraft
Loading...
Searching...
No Matches
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
14namespace LC
15{
16namespace Azoth
17{
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
60Q_DECLARE_INTERFACE (LC::Azoth::IURIHandler,
61 "org.Deviant.LeechCraft.Azoth.IURIHandler/1.0")
62
63#endif
This interface is for protocols that may handle URIs and corresponding actions are dependent on an ex...
Definition iurihandler.h:33
virtual bool SupportsURI(const QUrl &uri) const =0
Queries whether the given URI is supported.
virtual void HandleURI(const QUrl &uri, QObject *asAccount)=0
Asks to handle the given URI by the given account.