TDE base libraries and programs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

delayedinitializer.h 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* This file is part of the KDE project
  2. Copyright (C) 2003 Simon Hausmann <hausmann@kde.org>
  3. This program is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU General Public
  5. License as published by the Free Software Foundation; either
  6. version 2 of the License, or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; see the file COPYING. If not, write to
  13. the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  14. Boston, MA 02110-1301, USA.
  15. */
  16. #ifndef __delayedinitializer_h__
  17. #define __delayedinitializer_h__
  18. #include <tqobject.h>
  19. class DelayedInitializer : public TQObject
  20. {
  21. Q_OBJECT
  22. public:
  23. DelayedInitializer( int eventType, TQObject *parent, const char *name = 0 );
  24. virtual bool eventFilter( TQObject *receiver, TQEvent *event );
  25. signals:
  26. void initialize();
  27. private slots:
  28. void slotInitialize();
  29. private:
  30. int m_eventType;
  31. bool m_signalEmitted;
  32. };
  33. #endif
  34. /* vim: et sw=4
  35. */