Results 1 to 11 of 11

Thread: qt4 daemon

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Mar 2009
    Posts
    19
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: qt4 daemon

    i made a dbus interface, run a method where in a forever loop i tried ..


    Qt Code:
    1. QDateTime aTime_=getTime(); //gives the same format as current
    2. while(1){
    3. QDateTime currTime=QDateTime::currentDateTime ();
    4. qDebug()<<currTime << aTime_;
    5. if(aTime_.date()==currTime.date()){
    6. qDebug()<<"date checked"
    7. emit signalTime();
    8. }
    9.  
    10. //this part never calls
    11. if(aTime_.time()==currTime.time()){
    12. qDebug()<<"time checked";
    13. emit signalTime();
    14. }
    15. }
    To copy to clipboard, switch view to plain text mode 

    aTime_.time()==currTime.time() ....this compare never calls, ???
    another question is Is that the right way to make a daemon, or there is any other alternatives..
    Last edited by wysota; 10th March 2009 at 22:04. Reason: missing [code] tags

Similar Threads

  1. DBus daemon not starting
    By Khal Drogo in forum Qt Programming
    Replies: 5
    Last Post: 7th August 2008, 15:12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.