t_rpc_client.h

Go to the documentation of this file.
00001 #ifndef TEST_RPC_CLIENT_CLASS
00002 #define TEST_RPC_CLIENT_CLASS
00003 
00004 /*****************************************************************************\
00005 *                                                                             *
00006 *  Name   : test rpc client                                                   *
00007 *  Author : Chris Koeritz                                                     *
00008 *                                                                             *
00009 *******************************************************************************
00010 * Copyright (c) 2005-$now By Author.  This program is free software; you can  *
00011 * redistribute it and/or modify it under the terms of the GNU General Public  *
00012 * License as published by the Free Software Foundation; either version 2 of   *
00013 * the License or (at your option) any later version.  This is online at:      *
00014 *     http://www.fsf.org/copyleft/gpl.html                                    *
00015 * Please send any updates to: fred@gruntose.com                               *
00016 \*****************************************************************************/
00017 
00018 #include "client_side.h"
00019 
00020 // forward.
00021 class debugging_frame;
00022 
00023 class test_rpc_client : public CFrameWnd
00024 {
00025 public:
00026   test_rpc_client();
00027   virtual ~test_rpc_client();
00028 
00029   istring name() const { return "test_rpc_client"; }
00030 
00031   void start_timer(int interval);
00032     // starts the timer for random updates.
00033   void stop_timer();
00034     // stops the random update timer.
00035 
00036 private:
00037   example_rpc_client *my_client;
00038   CMenu the_menu;
00039 #ifdef DEBUG_RPC
00040   debugging_frame *console;  // the window for getting debug information.
00041 #endif
00042   chaos *rando;  // random number generator.
00043 
00044   LRESULT handle_update(WPARAM wp, LPARAM lp);
00045     // called when a point update is received from the server.
00046 
00047   // menu functions...
00048 
00049   // file choices:
00050   void menu_open_rpc();
00051   void menu_close_rpc();
00052   void menu_exit_program();
00053   
00054   // test choices:
00055   void menu_start_random();
00056   void menu_stop_random();
00057 
00058   // mfc mechanisms:
00059   DECLARE_MESSAGE_MAP()
00060   afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00061   afx_msg void OnClose();
00062   afx_msg void OnTimer(u_int timer_id);
00063 };
00064 
00065 #endif
00066 

Generated on Fri Nov 28 04:29:34 2008 for HOOPLE Libraries by  doxygen 1.5.1