00001 #ifndef PAUSE_INDICATOR_CLASS 00002 #define PAUSE_INDICATOR_CLASS 00003 00004 /*****************************************************************************\ 00005 * * 00006 * Name : pause_indicator * 00007 * Author : Chris Koeritz * 00008 * * 00009 * Purpose: * 00010 * * 00011 * Indicates visually that a possibly slow activity is occurring and that * 00012 * the user should do nothing dangerous (like zapping the app). * 00013 * * 00014 ******************************************************************************* 00015 * Copyright (c) 2003-$now By Author. This program is free software; you can * 00016 * redistribute it and/or modify it under the terms of the GNU General Public * 00017 * License as published by the Free Software Foundation; either version 2 of * 00018 * the License or (at your option) any later version. This is online at: * 00019 * http://www.fsf.org/copyleft/gpl.html * 00020 * Please send any updates to: fred@gruntose.com * 00021 \*****************************************************************************/ 00022 00023 #include "winexdll.h" 00024 00025 #include <basis/portable.h> 00026 00027 class WINDOWS_EXTENSIONS_CLASS_STYLE pause_indicator 00028 { 00029 public: 00030 pause_indicator(window_handle window); 00031 // places the visual indicator over the "window" until this object is 00032 // destroyed. other windows might change that if they're created in 00033 // the meantime--reassert can be used to put the pause sigil back up. 00034 00035 ~pause_indicator(); 00036 // removes the visual token for the long-winded activity. 00037 00038 void reassert(); 00039 // forces the visual indicator back in place if another window has 00040 // changed the state to a different one. 00041 00042 private: 00043 window_handle _win; // where the pause indicator is associated. 00044 void *_watch; // holds platform dependent info. 00045 }; 00046 00047 #endif 00048
1.5.1