KTutorial
0.5.1
|
00001 /*************************************************************************** 00002 * Copyright (C) 2008 by Daniel Calviño Sánchez <danxuliu@gmail.com> * 00003 * Copyright (C) 2009 by Daniel Calviño Sánchez <danxuliu@gmail.com> * 00004 * Copyright (C) 2010 by Daniel Calviño Sánchez <danxuliu@gmail.com> * 00005 * Copyright (C) 2012 by Daniel Calviño Sánchez <danxuliu@gmail.com> * 00006 * * 00007 * This program is free software; you can redistribute it and/or modify * 00008 * it under the terms of the GNU General Public License as published by * 00009 * the Free Software Foundation; either version 2 of the License, or * 00010 * (at your option) any later version. * 00011 * * 00012 * This program is distributed in the hope that it will be useful, * 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00015 * GNU General Public License for more details. * 00016 * * 00017 * You should have received a copy of the GNU General Public License * 00018 * along with this program; If not, see <http://www.gnu.org/licenses/>. * 00019 ***************************************************************************/ 00020 00021 #ifndef KTUTORIAL_WAITFORNOT_H 00022 #define KTUTORIAL_WAITFORNOT_H 00023 00024 #include "ktutorial_export.h" 00025 00026 #include "WaitFor.h" 00027 00028 namespace ktutorial { 00029 00060 class KTUTORIAL_EXPORT WaitForNot: public WaitFor { 00061 Q_OBJECT 00062 public: 00063 00072 Q_INVOKABLE WaitForNot(); 00073 00081 explicit WaitForNot(WaitFor* waitFor); 00082 00086 virtual ~WaitForNot(); 00087 00100 Q_INVOKABLE void setNegatedWaitFor(WaitFor* waitFor); 00101 00107 virtual bool conditionMet() const; 00108 00114 virtual void setActive(bool active); 00115 00116 protected: 00117 00123 WaitFor* waitFor() const; 00124 00125 private: 00126 00127 class WaitForNotPrivate* d; 00128 00129 }; 00130 00131 } 00132 00133 #endif