~phablet-team/history-service/trunk

« back to all changes in this revision

Viewing changes to tools/tplogger-import/telepathylogimporter.h

Remove the tools and their dependencies: they are obsolete and not useful anymore. 
Approved by: PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2013 Canonical, Ltd.
3
 
 *
4
 
 * Authors:
5
 
 *  Gustavo Pichorim Boiko <gustavo.boiko@canonical.com>
6
 
 *
7
 
 * This file is part of history-service.
8
 
 *
9
 
 * history-service is free software; you can redistribute it and/or modify
10
 
 * it under the terms of the GNU General Public License as published by
11
 
 * the Free Software Foundation; version 3.
12
 
 *
13
 
 * history-service is distributed in the hope that it will be useful,
14
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 
 * GNU General Public License for more details.
17
 
 *
18
 
 * You should have received a copy of the GNU General Public License
19
 
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
 
 */
21
 
 
22
 
#ifndef TELEPATHYLOGIMPORTER_H
23
 
#define TELEPATHYLOGIMPORTER_H
24
 
 
25
 
#include <QObject>
26
 
#include <TelepathyLoggerQt/Types>
27
 
#include <TelepathyLoggerQt/CallEvent>
28
 
#include <TelepathyLoggerQt/TextEvent>
29
 
#include <Event>
30
 
#include <Types>
31
 
 
32
 
class TelepathyLogImporter : public QObject
33
 
{
34
 
    Q_OBJECT
35
 
public:
36
 
    explicit TelepathyLogImporter(QObject *parent = 0);
37
 
 
38
 
public Q_SLOTS:
39
 
    void onCallEventLoaded(const Tpl::CallEventPtr &event);
40
 
    void onMessageEventLoaded(const Tpl::TextEventPtr &event);
41
 
    void onFinished();
42
 
private:
43
 
    int mTextEventCount;
44
 
    int mVoiceEventCount;
45
 
    History::Events mEvents;
46
 
    int mBatchSize;
47
 
 
48
 
};
49
 
 
50
 
#endif // TELEPATHYLOGIMPORTER_H