home *** CD-ROM | disk | FTP | other *** search
- /*
- * File: client.h
- * Purpose: Client demo for wxWindows class library
- *
- * wxWindows 1.40
- * Copyright (c) 1993 Artificial Intelligence Applications Institute,
- * The University of Edinburgh
- *
- * Author: Julian Smart
- * Date: 18-4-93
- *
- * Permission to use, copy, modify, and distribute this software and its
- * documentation for any purpose is hereby granted without fee, provided
- * that the above copyright notice, author statement and this permission
- * notice appear in all copies of this software and related documentation.
- *
- * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, EXPRESS,
- * IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
- * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
- *
- * IN NO EVENT SHALL THE ARTIFICIAL INTELLIGENCE APPLICATIONS INSTITUTE OR THE
- * UNIVERSITY OF EDINBURGH BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT OR
- * CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF THE POSSIBILITY OF
- * DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH
- * THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-
- // Define a new application
- class MyApp: public wxApp
- {
- public:
- wxFrame *OnInit(void);
- };
-
- // Define a new frame
- class MyFrame: public wxFrame
- {
- public:
- wxPanel *panel;
-
- MyFrame(wxFrame *frame, char *title, int x, int y, int w, int h);
- Bool OnClose(void);
- void OnMenuCommand(int id);
- };
-
- // IPC stuff
-
- class MyConnection: public wxConnection
- {
- public:
- MyConnection(void);
- ~MyConnection(void);
- Bool OnAdvise(char *topic, char *item, char *data, int size, int format);
- };
-
- class MyClient: public wxClient
- {
- public:
- MyClient(void);
- wxConnection *OnMakeConnection(void);
- };
-
- #define CLIENT_QUIT 1
- #define CLIENT_EXECUTE 2
- #define CLIENT_REQUEST 3
- #define CLIENT_POKE 4
-
-