Ticket #8952: mythsystem_flags.diff
| File mythsystem_flags.diff, 12.1 KB (added by , 16 years ago) |
|---|
-
mythplugins/mythnetvision/mythnetvision/nettree.cpp
820 820 } 821 821 QString playerCommand = cmd + " " + args.join(" "); 822 822 823 myth_system(playerCommand );823 myth_system(playerCommand, kMSDisableDrawing); 824 824 } 825 825 else 826 826 { … … 856 856 cmd.replace(";","\\;"); 857 857 858 858 GetMythMainWindow()->AllowInput(false); 859 myth_system(cmd , kMSDontDisableDrawing);859 myth_system(cmd); 860 860 GetMythMainWindow()->AllowInput(true); 861 861 return; 862 862 } -
mythplugins/mythnetvision/mythnetvision/netsearch.cpp
553 553 } 554 554 QString playerCommand = cmd + " " + args.join(" "); 555 555 556 myth_system(playerCommand );556 myth_system(playerCommand, kMSDisableDrawing); 557 557 } 558 558 else 559 559 { … … 589 589 cmd.replace(";","\\;"); 590 590 591 591 GetMythMainWindow()->AllowInput(false); 592 myth_system(cmd , kMSDontDisableDrawing);592 myth_system(cmd); 593 593 GetMythMainWindow()->AllowInput(true); 594 594 return; 595 595 } -
mythplugins/mytharchive/mytharchive/main.cpp
234 234 { 235 235 if (command.contains("%f")) 236 236 command = command.replace(QRegExp("%f"), filename); 237 myth_system(command );237 myth_system(command, kMSDisableDrawing); 238 238 } 239 239 } 240 240 -
mythplugins/mythbrowser/mythbrowser/bookmarkmanager.cpp
383 383 cmd.replace(";","\\;"); 384 384 385 385 GetMythMainWindow()->AllowInput(false); 386 myth_system(cmd , kMSDontDisableDrawing);386 myth_system(cmd); 387 387 GetMythMainWindow()->AllowInput(true); 388 388 389 389 // we need to reload the bookmarks incase the user added/deleted … … 603 603 cmd.replace(";","\\;"); 604 604 605 605 GetMythMainWindow()->AllowInput(false); 606 myth_system(cmd , kMSDontDisableDrawing);606 myth_system(cmd); 607 607 GetMythMainWindow()->AllowInput(true); 608 608 609 609 // we need to reload the bookmarks incase the user added/deleted -
mythplugins/mythgallery/mythgallery/glsingleview.cpp
217 217 QString path = QString("\"%1\"").arg(item->GetPath()); 218 218 219 219 cmd.replace("%s", path); 220 myth_system(cmd );220 myth_system(cmd, kMSDisableDrawing); 221 221 } 222 222 223 223 if (!m_slideshow_running) -
mythplugins/mythgallery/mythgallery/singleview.cpp
197 197 QString path = QString("\"%1\"").arg(item->GetPath()); 198 198 199 199 cmd.replace("%s", path); 200 myth_system(cmd );200 myth_system(cmd, kMSDisableDrawing); 201 201 } 202 202 203 203 if (!m_slideshow_running) -
mythplugins/mythvideo/mythvideo/main.cpp
125 125 MediaMonitor::defaultVCDdevice()); 126 126 } 127 127 sendPlaybackStart(); 128 myth_system(command_string );128 myth_system(command_string, kMSDisableDrawing); 129 129 sendPlaybackEnd(); 130 130 GetMythMainWindow()->raise(); 131 131 GetMythMainWindow()->activateWindow(); … … 184 184 command_string.replace(QRegExp("%d"), dvd_device); 185 185 } 186 186 sendPlaybackStart(); 187 myth_system(command_string );187 myth_system(command_string, kMSDisableDrawing); 188 188 sendPlaybackEnd(); 189 189 if (GetMythMainWindow()) 190 190 { -
mythplugins/mythvideo/mythvideo/playercommand.cpp
150 150 bool Play() const 151 151 { 152 152 sendPlaybackStart(); 153 myth_system(m_play_command );153 myth_system(m_play_command, kMSDisableDrawing); 154 154 sendPlaybackEnd(); 155 155 156 156 return true; -
mythplugins/mythvideo/mythvideo/videodlg.cpp
3093 3093 cmd.replace(";","\\;"); 3094 3094 3095 3095 GetMythMainWindow()->AllowInput(false); 3096 myth_system(cmd , kMSDontDisableDrawing);3096 myth_system(cmd); 3097 3097 GetMythMainWindow()->AllowInput(true); 3098 3098 return; 3099 3099 } -
mythplugins/mythgame/mythgame/gamehandler.cpp
910 910 ++cmd ) 911 911 { 912 912 VERBOSE(VB_GENERAL, LOC + QString("Executing : %1").arg(*cmd)); 913 myth_system(*cmd );913 myth_system(*cmd, kMSDisableDrawing); 914 914 } 915 915 } 916 916 else 917 917 { 918 918 VERBOSE(VB_GENERAL, LOC + QString("Executing : %1").arg(exec)); 919 myth_system(exec );919 myth_system(exec, kMSDisableDrawing); 920 920 } 921 921 922 922 (void)d.cd(savedir); -
mythplugins/mythnews/mythnews/mythnews.cpp
822 822 cmd.replace(";","\\;"); 823 823 824 824 GetMythMainWindow()->AllowInput(false); 825 myth_system(cmd , kMSDontDisableDrawing);825 myth_system(cmd); 826 826 GetMythMainWindow()->AllowInput(true); 827 827 return; 828 828 } … … 977 977 if (command_string.contains("%s")) 978 978 command_string = command_string.replace("%s", filename); 979 979 980 myth_system(command_string );980 myth_system(command_string, kMSDisableDrawing); 981 981 } 982 982 983 983 sendPlaybackEnd(); -
mythtv/libs/libmythdb/mythsystem.cpp
305 305 // down 306 306 flags &= ~kMSInUi; 307 307 flags |= kMSDontBlockInputDevs; 308 flags |= kMSDontDisableDrawing;309 308 } 310 309 311 310 // This needs to be a send event so that the MythUI locks the input devices … … 320 319 // This needs to be a send event so that the MythUI m_drawState change is 321 320 // flagged immediately instead of after existing events are processed 322 321 // since this function could be called inside one of those events. 323 if ( !(flags & kMSDontDisableDrawing))322 if (flags & kMSDisableDrawing) 324 323 { 325 324 QEvent event(MythEvent::kPushDisableDrawingEventType); 326 325 QCoreApplication::sendEvent(gCoreContext->GetGUIObject(), &event); … … 332 331 // This needs to be a send event so that the MythUI m_drawState change is 333 332 // flagged immediately instead of after existing events are processed 334 333 // since this function could be called inside one of those events. 335 if ( !(flags & kMSDontDisableDrawing))334 if (flags & kMSDisableDrawing) 336 335 { 337 336 QEvent event(MythEvent::kPopDisableDrawingEventType); 338 337 QCoreApplication::sendEvent(gCoreContext->GetGUIObject(), &event); -
mythtv/libs/libmythdb/mythsystem.h
8 8 9 9 typedef enum MythSystemMask { 10 10 kMSNone = 0x00000000, 11 kMSDontBlockInputDevs = 0x00000001, //< avoid blocking LIRC & Joystick Menu12 kMSD ontDisableDrawing = 0x00000002, //< avoid disablingUI drawing11 kMSDontBlockInputDevs = 0x00000001, //< Blocking Input (Lirc, Joystick, etc) 12 kMSDisableDrawing = 0x00000002, //< Disable UI drawing 13 13 kMSRunBackground = 0x00000004, //< run child in the background 14 14 kMSInUi = 0x00000008, //< the parent is in the UI 15 15 } MythSystemFlag; -
mythtv/programs/mythwelcome/welcomedialog.cpp
107 107 QString startFECmd = gCoreContext->GetSetting("MythWelcomeStartFECmd", 108 108 m_installDir + "/bin/mythfrontend"); 109 109 110 myth_system(startFECmd );110 myth_system(startFECmd, kMSDisableDrawing); 111 111 updateAll(); 112 112 m_frontendIsRunning = false; 113 113 } … … 288 288 { 289 289 QString cmd = gCoreContext->GetSetting("MythShutdownXTermCmd", ""); 290 290 if (!cmd.isEmpty()) 291 myth_system(cmd );291 myth_system(cmd, kMSDisableDrawing); 292 292 } 293 293 else if (action == "STARTSETUP") 294 294 { 295 295 QString mythtv_setup = m_installDir + "/bin/mythtv-setup"; 296 myth_system(mythtv_setup );296 myth_system(mythtv_setup, kMSDisableDrawing); 297 297 } 298 298 else 299 299 handled = false; -
mythtv/libs/libmythtv/previewgenerator.cpp
241 241 242 242 command += " > /dev/null"; 243 243 244 int ret = myth_system(command, kMSDontBlockInputDevs | 245 kMSDontDisableDrawing); 244 int ret = myth_system(command, kMSDontBlockInputDevs); 246 245 if (ret) 247 246 { 248 247 msg = QString("Encountered problems running '%1'").arg(command); -
mythtv/libs/libmythui/screensaver-x11.cpp
205 205 VERBOSE(VB_PLAYBACK, LOC + "Calling xscreensaver-command -deactivate"); 206 206 myth_system("xscreensaver-command -deactivate >&- 2>&- &", 207 207 kMSDontBlockInputDevs | 208 kMSDontDisableDrawing |209 208 kMSRunBackground); 210 209 } 211 210 if (m_gscreensaverRunning) … … 213 212 VERBOSE(VB_PLAYBACK, LOC + "Calling gnome-screensaver-command --poke"); 214 213 myth_system("gnome-screensaver-command --poke >&- 2>&- &", 215 214 kMSDontBlockInputDevs | 216 kMSDontDisableDrawing |217 215 kMSRunBackground); 218 216 } 219 217 m_last_deactivated = current_time;
