INTRODUCTION
Overview
Download and Install
Quick Start
Documentation
Publications

NONFRAMEWORK CODE
Driver Interfaces
Drivers
Libraries
Utilities

FRAMEWORK CODE
Interfaces
Components
Libraries
Utilities

Full Software Listings

DEVELOPER
Tutorials
Examples
Dev Guide
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

termdisplayevents.h

00001 /*
00002  * Orca-Robotics Project: Components for robotics 
00003  *               http://orca-robotics.sf.net/
00004  * Copyright (c) 2004-2009 Alex Brooks, Alexei Makarenko, Tobias Kaupp
00005  *
00006  * This copy of Orca is licensed to you under the terms described in
00007  * the LICENSE file included in this distribution.
00008  *
00009  */
00010 
00011 #ifndef TERM_DISPLAY_EVENTS_H
00012 #define TERM_DISPLAY_EVENTS_H
00013 
00014 #include <hydroiceutil/event.h>
00015 #include <orcacm/types.h>
00016 #include <orcaprobe/abstractdisplay.h> // for focus types
00017 
00018 // alexm: we put these event definitions on the top level (not with term-iostream driver)
00019 // in case we write another terminal display driver (e.g. ncurses) which is likely to 
00020 // use the same events.
00021 
00022 namespace probe
00023 {
00024 
00025 enum EventType  
00026 {      
00027     NetworkActivityChanged=0,
00028     FocusChanged,
00029     RegistryDataChanged,
00030     PlatformDataChanged,
00031     ComponentDataChanged,
00032     InterfaceDataChanged,
00033     OperationDataChanged
00034 };
00035 
00036 class NetworkActivityChangedEvent : public hydroiceutil::Event
00037 {
00038 public:
00039     NetworkActivityChangedEvent( bool isActive )
00040         : Event( NetworkActivityChanged ),
00041           isActive_(isActive) {};
00042 
00043     bool isActive_;
00044 };
00045 typedef IceUtil::Handle<NetworkActivityChangedEvent> NetworkActivityChangedEventPtr;
00046 
00047 class FocusChangedEvent : public hydroiceutil::Event
00048 {
00049 public:
00050     FocusChangedEvent( orcaprobe::AbstractDisplay::FocusType focus )
00051         : Event( FocusChanged ),
00052           focus_(focus)  {};
00053     orcaprobe::AbstractDisplay::FocusType focus_;
00054 };
00055 typedef IceUtil::Handle<FocusChangedEvent> FocusChangedEventPtr;
00056 
00057 class RegistryDataChangedEvent : public hydroiceutil::Event
00058 {
00059 public:
00060     RegistryDataChangedEvent( const orcacm::RegistryHierarchicalData1 & data )
00061         : Event( RegistryDataChanged ),
00062           data_(data) {};
00063     orcacm::RegistryHierarchicalData1 data_;
00064 };
00065 typedef IceUtil::Handle<RegistryDataChangedEvent> RegistryDataChangedEventPtr;
00066 
00067 class PlatformDataChangedEvent : public hydroiceutil::Event
00068 {
00069 public:
00070     PlatformDataChangedEvent( const orcacm::RegistryHierarchicalData2 & data )
00071         : Event( PlatformDataChanged ),
00072           data_(data) {};
00073     orcacm::RegistryHierarchicalData2 data_;
00074 };
00075 typedef IceUtil::Handle<PlatformDataChangedEvent> PlatformDataChangedEventPtr;
00076 
00077 class ComponentDataChangedEvent : public hydroiceutil::Event
00078 {
00079 public:
00080     ComponentDataChangedEvent( const orcacm::ComponentData & data )
00081         : Event( ComponentDataChanged ),
00082           data_(data) {};
00083     orcacm::ComponentData data_;
00084 };
00085 typedef IceUtil::Handle<ComponentDataChangedEvent> ComponentDataChangedEventPtr;
00086 
00087 class InterfaceDataChangedEvent : public hydroiceutil::Event
00088 {
00089 public:
00090     InterfaceDataChangedEvent( const orcacm::InterfaceData & data )
00091         : Event( InterfaceDataChanged ),
00092           data_(data) {};
00093     orcacm::InterfaceData data_;
00094 };
00095 typedef IceUtil::Handle<InterfaceDataChangedEvent> InterfaceDataChangedEventPtr;
00096 
00097 
00098 class OperationDataChangedEvent : public hydroiceutil::Event
00099 {
00100 public:
00101     OperationDataChangedEvent( const orcacm::OperationData & data )
00102         : Event( OperationDataChanged ),
00103           data_(data) {};
00104     orcacm::OperationData data_;
00105 };
00106 typedef IceUtil::Handle<OperationDataChangedEvent> OperationDataChangedEventPtr;
00107 
00108 
00109 } // namespace
00110 
00111 #endif
 

Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)


Generated for Orca Robotics by  doxygen 1.4.5