LeechCraft Azoth
0.6.70-14771-g9d21b0f8ad
Modular multiprotocol IM plugin for LeechCraft
ihavepings.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
#pragma once
10
11
#include <QtPlugin>
12
13
namespace
LC
14
{
15
namespace
Azoth
16
{
17
class
IPendingPing
18
{
19
public
:
20
virtual
~IPendingPing
() {}
21
22
virtual
int
GetTimeout
()
const
= 0;
23
protected
:
24
virtual
void
replyReceived
(
int
timeout) = 0;
25
};
26
27
class
IHavePings
28
{
29
public
:
30
virtual
~IHavePings
() {}
31
32
virtual
QObject*
Ping
(
const
QString& variant) = 0;
33
};
34
}
35
}
36
37
Q_DECLARE_INTERFACE (
LC::Azoth::IPendingPing
,
38
"org.LeechCraft.Azoth.IPendingPing/1.0"
)
39
Q_DECLARE_INTERFACE (
LC
::Azoth::IHavePings,
40
"org.LeechCraft.Azoth.IHavePings/1.0")
LC::Azoth::IHavePings
Definition:
ihavepings.h:28
LC::Azoth::IHavePings::Ping
virtual QObject * Ping(const QString &variant)=0
LC::Azoth::IHavePings::~IHavePings
virtual ~IHavePings()
Definition:
ihavepings.h:30
LC::Azoth::IPendingPing
Definition:
ihavepings.h:18
LC::Azoth::IPendingPing::replyReceived
virtual void replyReceived(int timeout)=0
LC::Azoth::IPendingPing::GetTimeout
virtual int GetTimeout() const =0
LC::Azoth::IPendingPing::~IPendingPing
virtual ~IPendingPing()
Definition:
ihavepings.h:20
LC
Definition:
activityinfo.h:14
src
plugins
azoth
interfaces
azoth
ihavepings.h
Generated by
1.9.1