home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / winfe / mucproc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.6 KB  |  62 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. #ifndef MUCPROC_H
  20. #define MUCPROC_H
  21.  
  22.  typedef long (STDAPICALLTYPE *FARPEFUNC)(long, void*, void*); 
  23.  
  24. enum
  25. {
  26.     kGetPluginVersion,
  27.     kSelectAcctConfig,
  28.     kSelectModemConfig,
  29.     kSelectDialOnDemand
  30. };
  31.  
  32. class CMucProc
  33. {
  34. public:
  35.  
  36.     CMucProc();
  37.  
  38.     BOOL GetAcctArray(CStringArray *acctList);
  39.     BOOL IsAcctValid(char* acctStr);
  40.  
  41.     BOOL GetModemArray(CStringArray *modemList);
  42.     BOOL IsModemValid(char* modemStr);
  43.  
  44.     BOOL LoadMuc();
  45.  
  46.     void SetDialOnDemand(CString, BOOL);
  47.  
  48.     FARPEFUNC m_lpfnPEPluginFunc;
  49.  
  50. protected:
  51.     BOOL GetModemNames();
  52.     BOOL GetAccountNames();
  53.  
  54. private:
  55.     CStringArray    acctNames;              // array of accounts
  56.     CStringArray    modemNames;             // array of modems
  57.     BOOL                    acct_flag;              // flag of acctNames availability
  58.     BOOL                    modem_flag;             // flags of modemNames availability
  59. };
  60.  
  61. #endif
  62.