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

ark

  • sources
  • kde-4.14
  • kdeutils
  • ark
  • plugins
  • clirarplugin
clirarplugin/cliplugin.h
Go to the documentation of this file.
1 /*
2  * ark -- archiver for the KDE project
3  *
4  * Copyright (C) 2009 Harald Hvaal <haraldhv@stud.ntnu.no>
5  * Copyright (C) 2009-2010 Raphael Kubo da Costa <rakuco@FreeBSD.org>
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  *
12  * This program 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
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU 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 
23 #ifndef CLIPLUGIN_H
24 #define CLIPLUGIN_H
25 
26 #include "kerfuffle/cliinterface.h"
27 
28 class CliPlugin : public Kerfuffle::CliInterface
29 {
30  Q_OBJECT
31 
32 public:
33  explicit CliPlugin(QObject *parent, const QVariantList & args);
34 
35  virtual ~CliPlugin();
36 
37  virtual QString escapeFileName(const QString &fileName) const;
38 
39  virtual Kerfuffle::ParameterList parameterList() const;
40 
41  virtual bool readListLine(const QString &line);
42 
43 private:
44  enum {
45  ParseStateColumnDescription1 = 0,
46  ParseStateColumnDescription2,
47  ParseStateHeader,
48  ParseStateEntryFileName,
49  ParseStateEntryDetails,
50  ParseStateEntryIgnoredDetails
51  } m_parseState;
52 
53  QString m_entryFileName;
54  QHash<QString, QString> m_entryDetails;
55 
56  bool m_isPasswordProtected;
57 
58  int m_remainingIgnoredSubHeaderLines;
59  int m_remainingIgnoredDetailsLines;
60 
61  bool m_isUnrarFree;
62  bool m_isUnrarVersion5;
63 };
64 
65 #endif // CLIPLUGIN_H
cliinterface.h
CliPlugin::escapeFileName
virtual QString escapeFileName(const QString &fileName) const
Performs any additional escaping and processing on fileName before passing it to the underlying proce...
Definition: clirarplugin/cliplugin.cpp:54
Kerfuffle::CliInterface
Definition: cliinterface.h:224
CliPlugin
Definition: cli7zplugin/cliplugin.h:29
CliPlugin::parameterList
virtual Kerfuffle::ParameterList parameterList() const
Definition: cli7zplugin/cliplugin.cpp:47
QHash
QObject
CliPlugin::CliPlugin
CliPlugin(QObject *parent, const QVariantList &args)
Definition: cli7zplugin/cliplugin.cpp:36
QString
CliPlugin::~CliPlugin
virtual ~CliPlugin()
Definition: cli7zplugin/cliplugin.cpp:43
CliPlugin::readListLine
virtual bool readListLine(const QString &line)
Definition: cli7zplugin/cliplugin.cpp:78
QObject::parent
QObject * parent() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:37 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

ark

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

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • sweeper

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