www.pudn.com > xvoice-0.8.1.rar > MainWin.h


// -*- C++ -*-

/**
 * MainWin.h
 *
 * Description: declaration of MainWindow object
 *
 * Copyright (c) 1999, David Z. Creemer.
 * See the LICENSE file. All rights not granted therein are reserved.
 *
 * @author David Z. Creemer
 * @version 1.0
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 */

#ifndef _MAINWIN_H
#define _MAINWIN_H

#include "Target.h"

class MainWindow
{
    public:

        virtual ~MainWindow();

        // events
        virtual void micOff();
        virtual void micOn();
        virtual void targState(bool, bool);
        virtual void reco(const char *text, bool firm);
        virtual void errorMsg(int sev, const char* fn, const char* fmt, ...);
        virtual void vocab(bool active, char *name);

        // utility
        virtual int notify ( int socket_handle, int ( * recv_fn ) ( ),
                        void * recv_data, void * client_data );
        virtual void initVocabs();

        // targets 
        virtual Target* getTarget();
        virtual Target* getNavTarget();
        virtual bool setTarget();

};

extern MainWindow* gMainWin;

#endif // _MAINWIN_H