timecodeplugin.cpp

Go to the documentation of this file.
00001 //
00002 // Qt Plugin: testplugin
00003 //
00004 // Description:
00005 //
00006 //
00007 // Author: Chuk <bbob@chuktech.net>
00008 //
00009 // Copyright: See COPYING file that comes with this distribution
00010 //
00011 //
00012 #include <QtGui>
00013 
00014 #include "timecodeplugin.h"
00015 
00016 
00017 void TimeCodePlugin::setTime()
00018 {
00019     *timecode = timecode->addMSecs(Frames);
00020 
00021     s1 = timecode->toString("h.m.s");
00022     list = messages->values(s1);
00023     if (list.size() > 0)
00024     {
00025         for (int i = 0; i < list.size(); ++i)
00026         {
00027             s2 =  list.at(i);
00028             qDebug("Found message : " + s2.toAscii() );
00029             bcore->StringBus(MyID, s2.section("|",0,0).toInt(), s2.section("|",1));
00030             messages->remove(s1, s2);
00031         }
00032     }
00033 }
00034 
00035 
00036 Q_EXPORT_PLUGIN2(bbob_timecode, TimeCodePlugin)
00037 

Generated on Sun Oct 28 22:51:29 2007 for BBoB by  doxygen 1.5.3