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

kleopatra

  • sources
  • kde-4.12
  • kdepim
  • kleopatra
  • libkleopatraclient
  • core
libkleopatraclient/core/command.h
Go to the documentation of this file.
1 /* -*- mode: c++; c-basic-offset:4 -*-
2  core/command.h
3 
4  This file is part of KleopatraClient, the Kleopatra interface library
5  Copyright (c) 2008 Klarälvdalens Datakonsult AB
6 
7  KleopatraClient is free software; you can redistribute it and/or modify
8  it under the terms of the GNU Library General Public License as published by
9  the Free Software Foundation; either version 2 of the License, or
10  (at your option) any later version.
11 
12  KleopatraClient is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  Library General Public License for more details.
16 
17  You should have received a copy of the GNU Library General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21 
22 #ifndef __LIBKLEOPATRACLIENT_CORE_COMMAND_H__
23 #define __LIBKLEOPATRACLIENT_CORE_COMMAND_H__
24 
25 #include <libkleopatraclient/kleopatraclient_export.h>
26 
27 #include <QtCore/QObject>
28 #include <QWidget> // only for WId, doesn't prevent linking against QtCore-only
29 
30 class QString;
31 class QByteArray;
32 class QVariant;
33 
34 namespace KLEOPATRACLIENT_NAMESPACE {
35 
36  class KLEOPATRACLIENTCORE_EXPORT Command : public QObject {
37  Q_OBJECT
38  public:
39  explicit Command( QObject * parent=0 );
40  ~Command();
41 
42  void setParentWId( WId wid );
43  WId parentWId() const;
44 
45  void setServerLocation( const QString & location );
46  QString serverLocation() const;
47 
48  bool waitForFinished();
49  bool waitForFinished( unsigned long ms );
50 
51  bool error() const;
52  bool wasCanceled() const;
53  QString errorString() const;
54 
55  qint64 serverPid() const;
56 
57  public Q_SLOTS:
58  void start();
59  void cancel();
60 
61  Q_SIGNALS:
62  void started();
63  void finished();
64 
65  protected:
66  void setOptionValue( const char * name, const QVariant & value, bool critical=true );
67  void setOption( const char * name, bool critical=true );
68  void unsetOption( const char * name );
69 
70  QVariant optionValue( const char * name ) const;
71  bool isOptionSet( const char * name ) const;
72  bool isOptionCritical( const char * name ) const;
73 
74  void setFilePaths( const QStringList & filePaths );
75  QStringList filePaths() const;
76 
77  void setRecipients( const QStringList & recipients, bool informative );
78  QStringList recipients() const;
79  bool areRecipientsInformative() const;
80 
81  void setSenders( const QStringList & senders, bool informative );
82  QStringList senders() const;
83  bool areSendersInformative() const;
84 
85  void setInquireData( const char * what, const QByteArray & data );
86  void unsetInquireData( const char * what );
87  QByteArray inquireData( const char * what ) const;
88  bool isInquireDataSet( const char * what ) const;
89 
90  QByteArray receivedData() const;
91 
92  void setCommand( const char * command );
93  QByteArray command() const;
94 
95  protected:
96  class Private;
97  Private * d;
98  Command( Private * p, QObject * parent );
99  };
100 
101 }
102 
103 #endif /* __LIBKLEOPATRACLIENT_CORE_COMMAND_H__ */
KLEOPATRACLIENT_NAMESPACE::Command::Private
Definition: libkleopatraclient/core/command_p.h:37
KLEOPATRACLIENTCORE_EXPORT
#define KLEOPATRACLIENTCORE_EXPORT
Definition: kleopatraclient_export.h:53
kleopatraclient_export.h
KLEOPATRACLIENT_NAMESPACE::Command::d
Private * d
Definition: libkleopatraclient/core/command.h:96
name
const char * name
Definition: uiserver/selectcertificatecommand.cpp:114
KLEOPATRACLIENT_NAMESPACE::Command
Definition: libkleopatraclient/core/command.h:36
KLEOPATRACLIENT_NAMESPACE
#define KLEOPATRACLIENT_NAMESPACE
Definition: kleopatraclient_export.h:61
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kleopatra

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

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