Class Hierarchy   Class Index   Method Index  

IGCsource.h

00001 #ifndef __IGC_SOURCE_H__
00002 #define __IGC_SOURCE_H__
00003 //--------------------------------------------------------------------------
00004 // Copyright (C) 1997-2010 iNTERFACEWARE Inc. All Rights Reserved.
00005 //
00006 // Class: IGCsource
00007 //
00008 // Description:
00009 //
00010 // Class interface definition.
00011 //
00012 // This file is automatically generated.
00013 // DO NOT EDIT.
00014 //
00015 // Author: codegen2
00016 // Date:   Thursday, May 28th, 2009 @ 10:15:00 AM
00017 // Revision: $Revision: 1.12 $
00018 //
00019 // Last Edit Date: $Date: 2010-03-08 21:15:41 $
00020 // Source: $Source: /home/cvs/cvsroot/IGC/IGCsource.h,v $
00021 //--------------------------------------------------------------------------
00022 
00023 #include <IGC/IGCminimumInclude.h>
00024 // Predeclared Classes
00025 class IGCsourceMessageRequestedEventInputs;
00026 class IGCsourceMessageRequestedEventOutputs;
00027 class IGCsourceMessageRequestCompletedEventInputs;
00028 class IGCsourceMessageRequestCompletedEventOutputs;
00029 class IGCdisconnectReason;
00030 
00031 
00032 #ifndef __IGC_SOURCE_HANDLE_H__
00033 #define __IGC_SOURCE_HANDLE_H__
00034 typedef void* IGCsourceHandle;
00035 #endif
00036 
00037 
00066 class IGCsource
00067 {
00068 public:
00070    IGCsource();
00071    
00073    virtual ~IGCsource();
00074    
00076    IGCsourceHandle GetHandle() const { return Handle; }
00077    
00078    
00089    IGCdisconnectReason DisconnectReason() const;
00090    
00091    
00102    IGCint32 ConnectTimeout() const;
00103    
00104    
00112    void SetConnectTimeout(IGCint32 Value);
00113    
00114    
00126    void EnableDebugLogging(const char* FileName);
00127    
00128    
00152    void Connect(const char* HostName, IGCint32 PortNumber, const char* ChannelName);
00153    
00154    
00161    void Disconnect();
00162    
00163    
00171    void WaitForDisconnect();
00172    
00173    
00186    IGCboolean WaitForDisconnectWithTimeout(IGCint32 TimeoutInMilliseconds);
00187    
00188    
00201    virtual void OnMessageRequested(IGCsourceMessageRequestedEventInputs& Inputs, IGCsourceMessageRequestedEventOutputs& Outputs)=0;
00202    
00203    
00214    virtual void OnMessageRequestCompleted(IGCsourceMessageRequestCompletedEventInputs& Inputs, IGCsourceMessageRequestCompletedEventOutputs& Outputs)=0;
00215    
00216    
00228    virtual void OnDisconnected()=0;
00229    
00230    
00231 private:
00232    IGCsource(const IGCsource& Orig); // Not allowed
00233    IGCsource& operator=(const IGCsource& Orig); // Not allowed
00234    static void setup();
00235    IGCsourceHandle Handle;
00236 };
00237 
00238 #endif // end of defensive include