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

libkdepim

  • sources
  • kde-4.14
  • kdepim
  • libkdepim
  • misc
broadcaststatus.h
Go to the documentation of this file.
1 /*
2  broadcaststatus.h
3 
4  This file is part of libkdepim.
5 
6  Copyright (C) 2000 Don Sanders <sanders@kde.org>
7 
8  This program is free software; you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation; either version 2 of the License, or
11  (at your option) any later version.
12 
13  This program 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 along
19  with this program; if not, write to the Free Software Foundation, Inc.,
20  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 */
22 
23 #ifndef KDEPIM_BROADCASTSTATUS_H
24 #define KDEPIM_BROADCASTSTATUS_H
25 
26 #include "kdepim_export.h"
27 #include <QObject>
28 
29 #undef None
30 
31 namespace KPIM {
32 
33 class ProgressItem;
34 
40 class KDEPIM_EXPORT BroadcastStatus : public QObject
41 {
42 
43  Q_OBJECT
44 
45 public:
46  virtual ~BroadcastStatus();
47 
49  static BroadcastStatus *instance();
50 
52  QString statusMsg() const { return mStatusMsg; }
53 
55  void setStatusMsgWithTimestamp( const QString &message );
56 
58  void setStatusMsgTransmissionCompleted( int numMessages,
59  int numBytes = -1,
60  int numBytesRead = -1,
61  int numBytesToRead = -1,
62  bool mLeaveOnServer = false,
63  KPIM::ProgressItem *progressItem = 0 );
64  void setStatusMsgTransmissionCompleted( const QString &account,
65  int numMessages,
66  int numBytes = -1,
67  int numBytesRead = -1,
68  int numBytesToRead = -1,
69  bool mLeaveOnServer = false,
70  KPIM::ProgressItem *progressItem = 0 );
71 
72 public Q_SLOTS:
77  void setStatusMsg( const QString &message );
78 
83  void setTransientStatusMsg( const QString &msg );
84 
89  void reset();
90 
91 Q_SIGNALS:
93  void statusMsg( const QString & );
94 
95 protected:
96  BroadcastStatus();
97  QString mStatusMsg;
98  bool mTransientActive;
99 };
100 
101 }
102 
103 #endif
kdepim_export.h
KPIM::BroadcastStatus::statusMsg
QString statusMsg() const
Return the last status message from setStatusMsg()
Definition: broadcaststatus.h:52
QObject
QString
KPIM::BroadcastStatus::mStatusMsg
QString mStatusMsg
Definition: broadcaststatus.h:97
KPIM::BroadcastStatus
Provides a singleton which broadcasts status messages by emitting signals.
Definition: broadcaststatus.h:40
KPIM::ProgressItem
Definition: progressmanager.h:45
KPIM::BroadcastStatus::mTransientActive
bool mTransientActive
Definition: broadcaststatus.h:98
KDEPIM_EXPORT
#define KDEPIM_EXPORT
Definition: kdepim_export.h:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:50 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
  • pimprint

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