home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / me100.zip / sample.zip / NOTEBOOK.HPP < prev    next >
Text File  |  1996-05-27  |  2KB  |  66 lines

  1. #include <iframe.hpp>
  2. #include <inotebk.hpp>
  3. #include <icombobx.hpp>
  4. #include <ilistbox.hpp>
  5. #include <ispintxt.hpp>
  6. #include <ipushbut.hpp>
  7. #include <iradiobt.hpp>
  8. #include <icheckbx.hpp>
  9. #include <icmdhdr.hpp>
  10. #include <iselhdr.hpp>
  11. #include <ientryfd.hpp>
  12. #include <ithread.hpp>
  13. #include "notebook.h"
  14. #include "\work\modemengine\modemengine.hpp"
  15.  
  16. class GeneralSettings : public IFrameWindow
  17.                        ,public ICommandHandler
  18.                        ,public ISelectHandler
  19.                        {
  20. public:
  21.   GeneralSettings(unsigned long windowId);
  22.   ~GeneralSettings();
  23.  
  24. private:
  25.   IResourceLibrary reslib;
  26.   INotebook      notebook;
  27.   IPageHandle    tab1, tab2, tab3, tab4;
  28.   IFrameWindow   wnd_tab1, wnd_tab2, wnd_tab3, wnd_tab4;
  29.   IComboBox      comPort;
  30.   IListBox       testOutput, statOutput, messages;
  31.   ITextSpinButton quality, silenceVal, rings;
  32.   ICheckBox      monitor, silenceDet, silenceDel, startOn, startMin;
  33.   IPushButton    testbtn;
  34.   IRadioButton   singleMbx, multipleMbx, powerOn, powerOff;
  35.   IThread        testThread, answerThread;
  36.   IEntryField    greeting;
  37.   GeneralSettings (const GeneralSettings &);
  38. GeneralSettings
  39.   &operator= (const GeneralSettings &);
  40. void
  41.   loadSettings();
  42. void
  43.   saveSettings();
  44. void
  45.   saveTest(IListBox&);
  46. void
  47.   modemTest();
  48. void
  49.   selectGreeting();
  50. void
  51.   modemAnswer();
  52. void
  53.   modemTestThread();
  54. void
  55.   modemAnswerThread();
  56. MODEM_ENGINE::MODEMRESPONSE
  57.   modemResponse (MODEM_ENGINE & me, IListBox * lb, int timeout=600);
  58. enum _power {off, on};
  59.   _power power;
  60.  
  61. protected:
  62.   Boolean command(ICommandEvent &cmdEvent);
  63.   Boolean systemCommand(ICommandEvent &cmdEvent);
  64.   Boolean selected(IControlEvent &event);
  65. };
  66.