~ubuntu-branches/ubuntu/precise/ktp-filetransfer-handler/precise

« back to all changes in this revision

Viewing changes to src/telepathy-base-job_p.h

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2012-02-08 15:49:24 UTC
  • Revision ID: package-import@ubuntu.com-20120208154924-9m2mcgarcut2pde1
Tags: upstream-0.3.0
ImportĀ upstreamĀ versionĀ 0.3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2009-2010 Collabora Ltd. <info@collabora.co.uk>
 
3
 *   @Author Dario Freddi <dario.freddi@collabora.co.uk>
 
4
 *
 
5
 * This library is free software; you can redistribute it and/or
 
6
 * modify it under the terms of the GNU Lesser General Public
 
7
 * License as published by the Free Software Foundation; either
 
8
 * version 2.1 of the License, or (at your option) any later version.
 
9
 *
 
10
 * This library is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
13
 * Lesser General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU Lesser General Public
 
16
 * License along with this library; if not, write to the Free Software
 
17
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
18
 */
 
19
 
 
20
#ifndef LIBKTP_TELEPATHY_BASE_JOB_P_H
 
21
#define LIBKTP_TELEPATHY_BASE_JOB_P_H
 
22
 
 
23
#include "telepathy-base-job.h"
 
24
 
 
25
 
 
26
namespace Tp
 
27
{
 
28
class PendingOperation;
 
29
}
 
30
 
 
31
namespace KTp
 
32
{
 
33
 
 
34
class TelepathyBaseJobPrivate
 
35
{
 
36
    Q_DECLARE_PUBLIC(TelepathyBaseJob)
 
37
 
 
38
protected:
 
39
    TelepathyBaseJob* q_ptr;
 
40
 
 
41
public:
 
42
    TelepathyBaseJobPrivate();
 
43
    virtual ~TelepathyBaseJobPrivate();
 
44
 
 
45
    QList< Tp::PendingOperation* > operations;
 
46
    QList< QPair< QString, QString > > telepathyErrors;
 
47
 
 
48
    void addOperation(Tp::PendingOperation* op);
 
49
 
 
50
    // Operation Q_PRIVATE_SLOTS
 
51
    void __k__tpOperationFinished(Tp::PendingOperation* op);
 
52
    void __k__doEmitResult();
 
53
};
 
54
 
 
55
} // namespace KTp
 
56
 
 
57
#endif // LIBKTP_TELEPATHY_BASE_JOB_P_H