Huggle
build:^490^dce1e5c
|
Provider that uses a wikimedia irc recent changes feed to retrieve information about edits. More...
#include <hugglefeedproviderirc.hpp>
Public Member Functions | |
bool | ContainsEdit () |
Check if feed is containing some edits in buffer. | |
void | InsertEdit (WikiEdit *edit) |
bool | IsConnected () |
bool | IsPaused () |
bool | IsStopped () |
Returns true in case that a provider is stopped and can be safely deleted. More... | |
bool | IsWorking () |
Return true if this feed is operational or not. | |
void | ParseEdit (QString line) |
void | Pause () |
This is useful to stop parsing edits from irc and like in case that queue is full. | |
bool | Restart () |
Restart the feed engine. | |
void | Resume () |
Resume edit parsing. | |
WikiEdit * | RetrieveEdit () |
Return a last edit from cache or NULL. | |
bool | Start () |
Start the feed engine. More... | |
void | Stop () |
Stop the feed engine. | |
Public Attributes | |
bool | Connected |
![]() | |
HuggleQueueFilter * | Filter |
Private Attributes | |
QList< WikiEdit * > | Buffer |
QMutex | lock |
bool | Paused |
QTcpSocket * | TcpSocket |
HuggleFeedProviderIRC_t * | thread |
Provider that uses a wikimedia irc recent changes feed to retrieve information about edits.
Definition at line 47 of file hugglefeedproviderirc.hpp.
|
virtual |
Returns true in case that a provider is stopped and can be safely deleted.
This is useful in case we are running some background threads and we need to wait for them to finish before we can delete the object
Reimplemented from Huggle::HuggleFeed.
Definition at line 405 of file hugglefeedproviderirc.cpp.
References IsWorking().
Referenced by Stop().
|
virtual |
Start the feed engine.
Reimplemented from Huggle::HuggleFeed.
Definition at line 35 of file hugglefeedproviderirc.cpp.
References Huggle::Core::DebugLog(), Huggle::Configuration::IRCIdent, Huggle::Configuration::IRCNick, Huggle::Configuration::IRCPort, Huggle::Configuration::IRCServer, Huggle::Core::Log(), Huggle::Core::Main, Huggle::Configuration::Project, and Huggle::Configuration::UserName.
Referenced by Restart().