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

KIO

  • sources
  • kde-4.14
  • kdelibs
  • kio
  • misc
  • kpac
script.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2003 Malte Starostik <malte@kde.org>
3  Copyright (c) 2011 Dawit Alemayehu <adawit@kde.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 
21 
22 #ifndef KPAC_SCRIPT_H
23 #define KPAC_SCRIPT_H
24 
25 #include <QtCore/QString>
26 
27 class KUrl;
28 class QScriptEngine;
29 
30 namespace KPAC
31 {
32  class Script
33  {
34  public:
35  class Error
36  {
37  public:
38  Error( const QString& message )
39  : m_message( message ) {}
40  const QString& message() const { return m_message; }
41 
42  private:
43  QString m_message;
44  };
45 
46  Script( const QString& code );
47  ~Script();
48  QString evaluate( const KUrl& );
49 
50  private:
51  QScriptEngine* m_engine;
52  };
53 }
54 
55 #endif // KPAC_SCRIPT_H
56 
57 // vim: ts=4 sw=4 et
KPAC::Script::evaluate
QString evaluate(const KUrl &)
Definition: script.cpp:745
KPAC::Script
Definition: script.h:32
KPAC::Script::~Script
~Script()
Definition: script.cpp:740
KUrl
QScriptEngine
KPAC::Script::Error::Error
Error(const QString &message)
Definition: script.h:38
QString
KPAC::Script::Error
Definition: script.h:35
KPAC::Script::Error::message
const QString & message() const
Definition: script.h:40
KPAC::Script::Script
Script(const QString &code)
Definition: script.cpp:729
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

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