mailgui.h
上传用户:hzhsqp
上传日期:2007-01-06
资源大小:1600k
文件大小:4k
源码类别:

IP电话/视频会议

开发平台:

Visual C++

  1. /*
  2.  * mailgui.h
  3.  *
  4.  * Electronic Mail GUI interface.
  5.  *
  6.  * Portable Windows Library
  7.  *
  8.  * Copyright (c) 1993-1998 Equivalence Pty. Ltd.
  9.  *
  10.  * The contents of this file are subject to the Mozilla Public License
  11.  * Version 1.0 (the "License"); you may not use this file except in
  12.  * compliance with the License. You may obtain a copy of the License at
  13.  * http://www.mozilla.org/MPL/
  14.  *
  15.  * Software distributed under the License is distributed on an "AS IS"
  16.  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
  17.  * the License for the specific language governing rights and limitations
  18.  * under the License.
  19.  *
  20.  * The Original Code is Portable Windows Library.
  21.  *
  22.  * The Initial Developer of the Original Code is Equivalence Pty. Ltd.
  23.  *
  24.  * Portions are Copyright (C) 1993 Free Software Foundation, Inc.
  25.  * All Rights Reserved.
  26.  *
  27.  * Contributor(s): ______________________________________.
  28.  *
  29.  * $Log: mailgui.h,v $
  30.  * Revision 1.7  1999/03/10 03:49:52  robertj
  31.  * More documentation adjustments.
  32.  *
  33.  * Revision 1.6  1999/03/09 08:01:48  robertj
  34.  * Changed comments for doc++ support (more to come).
  35.  *
  36.  * Revision 1.5  1999/02/16 08:08:45  robertj
  37.  * MSVC 6.0 compatibility changes.
  38.  *
  39.  * Revision 1.4  1998/11/30 03:01:00  robertj
  40.  * New directory structure
  41.  *
  42.  * Revision 1.3  1998/09/23 06:24:09  robertj
  43.  * Added open source copyright license.
  44.  *
  45.  * Revision 1.2  1995/08/12 22:29:43  robertj
  46.  * Rework of GUI mail class.
  47.  *
  48.  * Revision 1.1  1995/04/01 08:24:14  robertj
  49.  * Initial revision
  50.  *
  51.  */
  52. #define _PMAILGUI
  53. #ifdef __GNUC__
  54. #pragma interface
  55. #endif
  56. #include <ptlib/mail.h>
  57. /**This class establishes a mail session with the platforms mail system using
  58.    a Graphical User Interface.
  59. */
  60. class PMailGUI : public PMail
  61. {
  62.   PCLASSINFO(PMailGUI, PMail);
  63.   public:
  64.    /**Create a mail session using a Graphical User Interface. If the
  65.        #parent# parameter is non-null then a dialog is presented
  66.        to log the user onto the mail system.
  67.        Note that not all platforms may display a dialog at all. The user may
  68.        be implicitly logged into the mail system as in Unix or logged in via
  69.        another process as in MS-Windows when another mail program is open.
  70.      */
  71.     PMailGUI(
  72.       PInteractor * parent = NULL    /// Parent window for GUI interface.
  73.     );
  74.    /**Destroy the mail session, logging off the mail system if necessary.
  75.      */
  76.     virtual ~PMailGUI();
  77.   /**@name New functions for class */
  78.    /**Attempt to log on to the mail system using a Graphical User Interface.
  79.        A dialog may be presented to allow the user to select a user name and
  80.        password.
  81.        If the #parent# parameter is NULL then the owner interactor
  82.        will be the application main window.
  83.        Note that not all platforms may display a dialog at all. The user may
  84.        be implicitly logged into the mail system as in Unix or logged in via
  85.        another process as in MS-Windows when another mail program is open.
  86.        @return
  87.        TRUE if successfully logged on.
  88.      */
  89.     BOOL LogOnGUI(
  90.       PInteractor * parent = NULL    /// Parent window for GUI interface.
  91.     );
  92.    /**Display a system standard dialog for sending a mail message. All of the
  93.        mail actions: entering text, addresses, attachments etc, are performed
  94.        automatically by the displayed GUI.
  95.        @return
  96.        TRUE if successfully logged on.
  97.      */
  98.     BOOL SendGUI();
  99.    /**Get the interactor thatr owns the mail session dialogs.
  100.        @return
  101.        Pointer to owner interactor.
  102.      */
  103.     PInteractor * GetOwner() const
  104.       { return owner; }
  105.   protected:
  106.     /** Owner window of mail GUI windows */
  107.     PInteractor * owner;
  108. #ifdef DOC_PLUS_PLUS
  109. };
  110. #endif
  111. // Class declaration continued in platform specific header file ///////////////