Update of /cvsroot/mahogany/M/include/gui
In directory usw-pr-cvs1:/tmp/cvs-serv15792/include/gui

Modified Files:
        wxMApp.h 
Log Message:
implemented "alweays run only one instance" option and the remote control:
launching Mahogany will simply pass control and the command line options to
the previous instance, if any (and if this option is on)


Index: wxMApp.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/gui/wxMApp.h,v
retrieving revision 1.63
retrieving revision 1.64
diff -b -u -2 -r1.63 -r1.64
--- wxMApp.h    29 Mar 2002 20:42:21 -0000      1.63
+++ wxMApp.h    13 Apr 2002 23:34:31 -0000      1.64
@@ -1,11 +1,16 @@
-/*-*- c++ -*-********************************************************
- * wxMAppl class: all GUI specific application stuff                *
- *                                                                  *
- * (C) 1997-1999 by Karsten Ball�der (Balluedergmx.net)             *
- *                                                                  *
- * $Id$
- *******************************************************************/
-#ifndef WXMAPP_H
-#define WXMAPP_H
+///////////////////////////////////////////////////////////////////////////////
+// Project:     M - cross platform e-mail GUI client
+// File name:   gui/wxMApp.h - GUI-specific part of application logic
+// Purpose:     declares wxMApp class implementing MApplication ABC
+// Author:      Karsten Ball�der, Vadim Zeitlin
+// Modified by:
+// Created:     1997
+// CVS-ID:      $Id$
+// Copyright:   (c) 1997-2002 M-Team
+// Licence:     M license
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WXMAPP_H_
+#define _WXMAPP_H_
 
 #ifndef USE_PCH
@@ -27,4 +32,6 @@
 class WXDLLEXPORT wxHelpControllerBase;
 class WXDLLEXPORT wxPrintData;
+class WXDLLEXPORT wxServerBase;
+class WXDLLEXPORT wxSingleInstanceChecker;
 class WXDLLEXPORT wxTimer;
 
@@ -146,4 +153,11 @@
    virtual void SetAwayMode(bool isAway = true);
 
+   // multiple program instances handling
+   virtual bool IsAnotherRunning() const;
+   virtual bool CallAnother();
+   virtual bool SetupRemoteCallServer();
+
+   bool OnRemoteRequest(const char *request);
+
    /// Report a fatal error:
    virtual void FatalError(const char *message);
@@ -224,4 +238,7 @@
 #endif // USE_DIALUP
 
+   /** @name Log data */
+   //@{
+
    /// the log window (may be NULL)
    class wxMLogWindow *m_logWindow;
@@ -230,4 +247,17 @@
    wxLogChain *m_logChain;
 
+   //@}
+
+   /// @name IPC data
+   //@{
+
+   /// the wxIPC server
+   wxServerBase *m_serverIPC;
+
+   /// object used to check if another program instance is running
+   wxSingleInstanceChecker *m_snglInstChecker;
+
+   //@}
+
    DECLARE_EVENT_TABLE()
 };
@@ -240,3 +270,4 @@
 DECLARE_APP(wxMApp);
 
-#endif
+#endif // _WXMAPP_H_
+


_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to