File indexing completed on 2024-12-22 04:17:23

0001 /***************************************************************************
0002  *                                                                         *
0003  *   copyright : (C) 2014 Barth Netterfield                                *
0004  *                   netterfield@astro.utoronto.ca                         *
0005  *                                                                         *
0006  *   This program is free software; you can redistribute it and/or modify  *
0007  *   it under the terms of the GNU General Public License as published by  *
0008  *   the Free Software Foundation; either version 2 of the License, or     *
0009  *   (at your option) any later version.                                   *
0010  *                                                                         *
0011  ***************************************************************************/
0012 
0013 #ifndef STRINGSCRIPTINTERFACE_H
0014 #define STRINGSCRIPTINTERFACE_H
0015 
0016 #include <QString>
0017 
0018 #include "scriptinterface.h"
0019 #include "datastring.h"
0020 
0021 namespace Kst {
0022 
0023 class KSTCORE_EXPORT StringGenSI : public ScriptInterface
0024 {
0025     Q_OBJECT
0026     StringPtr str;
0027 public:
0028     explicit StringGenSI(StringPtr it);
0029     QString doCommand(QString);
0030     bool isValid();
0031     QByteArray endEditUpdate();
0032 
0033     static ScriptInterface* newString(ObjectStore *store);
0034 
0035 };
0036 
0037 class KSTCORE_EXPORT StringDataSI : public ScriptInterface
0038 {
0039     Q_OBJECT
0040     DataStringPtr str;
0041 public:
0042     explicit StringDataSI(DataStringPtr it);
0043     QString doCommand(QString);
0044     bool isValid();
0045     QByteArray endEditUpdate();
0046 
0047     static ScriptInterface* newString(ObjectStore *store);
0048 
0049 };
0050 
0051 }
0052 
0053 #endif // STRINGSCRIPTINTERFACE_H