Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void testme(void)
- {
- QObject o;
- int notificationId = MythUINotificationCenter::GetInstance()->Register(&o);
- MythMediaNotification n1(MythNotification::New, QImage(), DMAP(), 0.5, "step 1");
- n1.SetId(notificationId);
- n1.SetParent(&o);
- n1.SetDuration(10);
- MythUINotificationCenter::GetInstance()->Queue(n1);
- sleep (5);
- MythPlaybackNotification n2(MythNotification::Update, 1, "done");
- n2.SetId(notificationId);
- n2.SetParent(&o);
- n2.SetDuration(10);
- MythUINotificationCenter::GetInstance()->Queue(n2);
- MythUINotificationCenter::GetInstance()->UnRegister(&o, notificationId);
- }
- static void runTestMethod (void)
- {
- QtConcurrent::run(testme);
- }
Advertisement
Add Comment
Please, Sign In to add comment