1 /*************************************************************************** 2 rkeditobjectagent - description 3 ------------------- 4 begin : Fri Feb 16 2007 5 copyright : (C) 2007 by Thomas Friedrichsmeier 6 email : thomas.friedrichsmeier@kdemail.net 7 ***************************************************************************/ 8 9 /*************************************************************************** 10 * * 11 * This program is free software; you can redistribute it and/or modify * 12 * it under the terms of the GNU General Public License as published by * 13 * the Free Software Foundation; either version 2 of the License, or * 14 * (at your option) any later version. * 15 * * 16 ***************************************************************************/ 17 #ifndef RKEDITOBJECTAGENT_H 18 #define RKEDITOBJECTAGENT_H 19 20 #include <qobject.h> 21 #include "../rbackend/rcommandreceiver.h" 22 23 #include <qstring.h> 24 #include <qstringlist.h> 25 26 /** This agent gets called, when an rk.edit() command was run in the backend. The purpose is to first update the structure information for the object(s), and then try to open it/them. 27 28 @author Thomas Friedrichsmeier 29 */ 30 class RKEditObjectAgent : public QObject, public RCommandReceiver { 31 Q_OBJECT 32 public: 33 RKEditObjectAgent (const QStringList &object_names, RCommandChain *chain); 34 35 ~RKEditObjectAgent (); 36 protected: 37 void rCommandDone (RCommand *command) override; 38 private: 39 QStringList object_names; 40 int done_command_id; 41 }; 42 43 #endif 44