00001 #ifndef __IGC_DESTINATION_H__ 00002 #define __IGC_DESTINATION_H__ 00003 //-------------------------------------------------------------------------- 00004 // Copyright (C) 1997-2010 iNTERFACEWARE Inc. All Rights Reserved. 00005 // 00006 // Class: IGCdestination 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.15 $ 00018 // 00019 // Last Edit Date: $Date: 2010-03-02 16:03:10 $ 00020 // Source: $Source: /home/cvs/cvsroot/IGC/IGCdestination.h,v $ 00021 //-------------------------------------------------------------------------- 00022 00023 #include <IGC/IGCminimumInclude.h> 00024 // Predeclared Classes 00025 class IGCdestinationMessageReceivedEventInputs; 00026 class IGCdestinationMessageReceivedEventOutputs; 00027 class IGCdisconnectReason; 00028 00029 00030 #ifndef __IGC_DESTINATION_HANDLE_H__ 00031 #define __IGC_DESTINATION_HANDLE_H__ 00032 typedef void* IGCdestinationHandle; 00033 #endif 00034 00035 00055 class IGCdestination 00056 { 00057 public: 00059 IGCdestination(); 00060 00062 virtual ~IGCdestination(); 00063 00065 IGCdestinationHandle GetHandle() const { return Handle; } 00066 00067 00078 IGCdisconnectReason DisconnectReason() const; 00079 00080 00091 IGCint32 ConnectTimeout() const; 00092 00093 00101 void SetConnectTimeout(IGCint32 Value); 00102 00103 00115 void EnableDebugLogging(const char* FileName); 00116 00117 00146 void Connect(const char* HostName, IGCint32 PortNumber, const char* ChannelName); 00147 00148 00155 void Disconnect(); 00156 00157 00165 void WaitForDisconnect(); 00166 00167 00180 IGCboolean WaitForDisconnectWithTimeout(IGCint32 TimeoutInMilliseconds); 00181 00182 00192 virtual void OnMessageReceived(IGCdestinationMessageReceivedEventInputs& Inputs, IGCdestinationMessageReceivedEventOutputs& Outputs)=0; 00193 00194 00209 virtual void OnResubmissionPreviewMessageReceived(IGCdestinationMessageReceivedEventInputs& Inputs, IGCdestinationMessageReceivedEventOutputs& Outputs)=0; 00210 00211 00223 virtual void OnDisconnected()=0; 00224 00225 00226 private: 00227 IGCdestination(const IGCdestination& Orig); // Not allowed 00228 IGCdestination& operator=(const IGCdestination& Orig); // Not allowed 00229 static void setup(); 00230 IGCdestinationHandle Handle; 00231 }; 00232 00233 #endif // end of defensive include