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

libkdepim

  • sources
  • kde-4.12
  • kdepim
  • libkdepim
  • progresswidget
progressmanager_akonadiagent.cpp
Go to the documentation of this file.
1 /*
2  progressmanager.cpp
3 
4  This file is part of libkdepim.
5 
6  Copyright (c) 2004 Till Adam <adam@kde.org>
7 
8  This library is free software; you can redistribute it and/or
9  modify it under the terms of the GNU Library General Public
10  License as published by the Free Software Foundation; either
11  version 2 of the License, or (at your option) any later version.
12 
13  This library 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 GNU
16  Library General Public License for more details.
17 
18  You should have received a copy of the GNU Library General Public License
19  along with this library; see the file COPYING.LIB. If not, write to
20  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21  Boston, MA 02110-1301, USA.
22 */
23 
24 #include "progressmanager.h"
25 
26 #include "agentprogressmonitor.h"
27 
28 #include <KDebug>
29 
30 #include <Akonadi/AgentInstance>
31 
32 using namespace Akonadi;
33 
34 using namespace KPIM;
35 
36 ProgressItem *ProgressManager::createProgressItemForAgent( ProgressItem *parent,
37  const Akonadi::AgentInstance &instance,
38  const QString &id,
39  const QString &label,
40  const QString &status,
41  bool cancellable,
42  bool usesCrypto )
43 {
44  const bool itemAlreadyExists = ( mTransactions.value( id ) != 0 );
45  ProgressItem *t = createProgressItemImpl( parent, id, label, status, cancellable, usesCrypto );
46  // TODO ^ emits progressItemAdded() before I'm done connecting the signals.
47  // Should I block that and emit it when I'm done?
48 
49  if (!itemAlreadyExists) {
50  // kDebug() << "Created ProgressItem for agent" << instance.name();
51  new AgentProgressMonitor( instance, t );
52  }
53  return t;
54 }
55 
progressmanager.h
agentprogressmonitor.h
KPIM::AgentProgressMonitor
Definition: agentprogressmonitor.h:36
KPIM::ProgressItem
Definition: progressmanager.h:45
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkdepim

Skip menu "libkdepim"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



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