Nepomuk-Core
#include <logs-importer.h>

Classes | |
class | Private |
Signals | |
void | error (const QString &error) |
void | logsImported () |
Public Member Functions | |
LogsImporter (QObject *parent=0) | |
virtual | ~LogsImporter () |
bool | hasKopeteLogs (const Tp::AccountPtr &account) |
void | startLogImport (const Tp::AccountPtr &account) |
Detailed Description
A class to import old logs from Kopete.
This class provides convenient interface for importing logs from Kopete.
Currently the importer supports AIM, WML, ICQ, Jabber, GaduGadu and Yahoo logs.
Definition at line 37 of file logs-importer.h.
Constructor & Destructor Documentation
LogsImporter::LogsImporter | ( | QObject * | parent = 0 | ) |
Definition at line 26 of file logs-importer.cpp.
|
virtual |
Definition at line 34 of file logs-importer.cpp.
Member Function Documentation
|
signal |
Emitted when an error occurs during importing.
The process can still import some logs, but some might be missing.
bool LogsImporter::hasKopeteLogs | ( | const Tp::AccountPtr & | account | ) |
Checks whether there are any Kopete logs for account
.
- Parameters
-
account Telepathy Account against whose Kopete counterpart to check
- Returns
- Returns when there is at least one log for given account
Definition at line 39 of file logs-importer.cpp.
|
signal |
Emitted when logs are successfully imported.
void LogsImporter::startLogImport | ( | const Tp::AccountPtr & | account | ) |
Imports Kopete logs for account
to Telepathy.
Finds all Kopete logs for Kopete-version of account
, converts them to Telepathy Logger format and imports then to Telepathy Logger storage.
This method returns immediatelly. When all logs are scanned and converted, logsImported() signal is emitted.
The import will NOT overwrite existing log files.
- Parameters
-
account A Telepathy Account
Definition at line 44 of file logs-importer.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2013 The KDE developers.
Generated on Fri Mar 22 2013 10:58:52 by doxygen 1.8.1.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.