• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • KDevelop Utility Library
 

KDevelop Utility Library

  • lib
  • util
kdevjobtimer.cpp
1 /***************************************************************************
2  * Copyright (C) 2006 by Jens Dagerbo *
3  * jens.dagerbo@swipnet.se *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  ***************************************************************************/
11 
12 #include "kdevjobtimer.h"
13 
14 KDevJobTimer::KDevJobTimer( void * payload, TQObject *parent, const char *name)
15  : TQTimer(parent, name)
16 {
17  m_payload = payload;
18  connect( this, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotTimeout()) );
19 }
20 
21 KDevJobTimer::~KDevJobTimer()
22 {
23 }
24 
25 void KDevJobTimer::singleShot(int msec, TQObject * receiver, const char * member, void * payload)
26 {
27  KDevJobTimer * p = new KDevJobTimer( payload );
28  p->start( msec, true );
29  connect( p, TQT_SIGNAL(timeout(void*)), receiver, member );
30 }
31 
32 void KDevJobTimer::slotTimeout()
33 {
34  emit timeout( m_payload );
35  m_payload = 0;
36  deleteLater();
37 }
38 
39 #include "kdevjobtimer.moc"

KDevelop Utility Library

Skip menu "KDevelop Utility Library"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

KDevelop Utility Library

Skip menu "KDevelop Utility Library"
  • buildtools
  •   lib
  •     base
  •     parsers
  •       autotools
  •       qmake
  •     widgets
  •   api
  • languages
  •   lib
  •     debugger
  •     designer_integration
  •     interfaces
  • lib
  •   catalog
  •   interfaces
  •     extensions
  •     external
  •     extras
  •   util
  •   widgets
  •     propeditor
  • parts
  •   documentation
  •     interfaces
  • src
  •   profileengine
  •     lib
Generated for KDevelop Utility Library by doxygen 1.8.13
This website is maintained by Timothy Pearson.