• 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
14KDevJobTimer::KDevJobTimer( void * payload, TQObject *parent, const char *name)
15 : TQTimer(parent, name)
16{
17 m_payload = payload;
18 connect( this, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotTimeout()) );
19}
20
21KDevJobTimer::~KDevJobTimer()
22{
23}
24
25void 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, TQ_SIGNAL(timeout(void*)), receiver, member );
30}
31
32void 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.9.8
This website is maintained by Timothy Pearson.