• Skip to content
  • Skip to link menu
  • KDE API Reference
  • KDE Home
  • Contact Us
 

Nepomuk-Core

  • KTp
  • LogsImporter
Classes | Signals | Public Member Functions | List of all members
KTp::LogsImporter Class Reference

#include <logs-importer.h>

Inheritance diagram for KTp::LogsImporter:
Inheritance graph
[legend]

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.

LogsImporter::~LogsImporter ( )
virtual

Definition at line 34 of file logs-importer.cpp.

Member Function Documentation

void KTp::LogsImporter::error ( const QString &  error)
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
accountTelepathy 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.

void KTp::LogsImporter::logsImported ( )
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
accountA Telepathy Account

Definition at line 44 of file logs-importer.cpp.


The documentation for this class was generated from the following files:
  • logs-importer.h
  • logs-importer.cpp
This file is part of the KDE documentation.
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.

ktp-common-internals API Reference

Skip menu "ktp-common-internals API Reference"
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal