• 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_p.h
Go to the documentation of this file.
1 /* -*- mode: c++; c-basic-offset:4 -*-
2  command_p.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 #ifndef __LIBKLEOPATRACLIENT_CORE_COMMAND_P_H__
22 #define __LIBKLEOPATRACLIENT_CORE_COMMAND_P_H__
23 
24 #include "command.h"
25 
26 #include <QThread>
27 #include <QMutex>
28 
29 #include <QString>
30 #include <QStringList>
31 #include <QByteArray>
32 #include <QVariant>
33 
34 #include <map>
35 #include <string>
36 
37 class KLEOPATRACLIENT_NAMESPACE::Command::Private : public QThread {
38  Q_OBJECT
39 private:
40  friend class ::KLEOPATRACLIENT_NAMESPACE::Command;
41  Command * const q;
42 public:
43  explicit Private( Command * qq )
44  : QThread(),
45  q( qq ),
46  mutex( QMutex::Recursive ),
47  inputs(),
48  outputs()
49  {
50 
51  }
52  ~Private() {}
53 
54 private:
55  void init();
56 
57 private:
58  /* reimp */ void run();
59 
60 private:
61  QMutex mutex;
62  struct Option {
63  QVariant value;
64  bool hasValue : 1;
65  bool isCritical : 1;
66  };
67  struct Inputs {
68  Inputs() : parentWId( 0 ), areRecipientsInformative( false ), areSendersInformative( false ) {}
69  std::map<std::string,Option> options;
70  QStringList filePaths;
71  QStringList recipients, senders;
72  std::map<std::string,QByteArray> inquireData;
73  WId parentWId;
74  QByteArray command;
75  bool areRecipientsInformative : 1;
76  bool areSendersInformative : 1;
77  } inputs;
78  struct Outputs {
79  Outputs() : canceled( false ), serverPid( 0 ) {}
80  QString errorString;
81  bool canceled : 1;
82  QByteArray data;
83  qint64 serverPid;
84  QString serverLocation;
85  } outputs;
86 };
87 
88 #endif /* __LIBKLEOPATRACLIENT_CORE_COMMAND_P_H__ */
KLEOPATRACLIENT_NAMESPACE::Command::Private
Definition: libkleopatraclient/core/command_p.h:37
KLEOPATRACLIENT_NAMESPACE::Command::serverLocation
QString serverLocation() const
Definition: libkleopatraclient/core/command.cpp:144
command.h
KLEOPATRACLIENT_NAMESPACE::Command::filePaths
QStringList filePaths() const
Definition: libkleopatraclient/core/command.cpp:259
KLEOPATRACLIENT_NAMESPACE::Command::Private::Private
Private(Command *qq)
Definition: libkleopatraclient/core/command_p.h:43
KLEOPATRACLIENT_NAMESPACE::Command::senders
QStringList senders() const
Definition: libkleopatraclient/core/command.cpp:288
KLEOPATRACLIENT_NAMESPACE::Command::parentWId
WId parentWId() const
Definition: libkleopatraclient/core/command.cpp:133
KLEOPATRACLIENT_NAMESPACE::Command::errorString
QString errorString() const
Definition: libkleopatraclient/core/command.cpp:169
KLEOPATRACLIENT_NAMESPACE::Command::areSendersInformative
bool areSendersInformative() const
Definition: libkleopatraclient/core/command.cpp:293
KLEOPATRACLIENT_NAMESPACE::Command::serverPid
qint64 serverPid() const
Definition: libkleopatraclient/core/command.cpp:175
KLEOPATRACLIENT_NAMESPACE::Command::inquireData
QByteArray inquireData(const char *what) const
Definition: libkleopatraclient/core/command.cpp:309
KLEOPATRACLIENT_NAMESPACE::Command::areRecipientsInformative
bool areRecipientsInformative() const
Definition: libkleopatraclient/core/command.cpp:276
KLEOPATRACLIENT_NAMESPACE::Command::Private::~Private
~Private()
Definition: libkleopatraclient/core/command_p.h:52
KLEOPATRACLIENT_NAMESPACE::Command::command
QByteArray command() const
Definition: libkleopatraclient/core/command.cpp:336
KLEOPATRACLIENT_NAMESPACE::Command::recipients
QStringList recipients() const
Definition: libkleopatraclient/core/command.cpp:271
KLEOPATRACLIENT_NAMESPACE::Command
Definition: libkleopatraclient/core/command.h:36
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