//---------------------------------------------------------------------------

#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-managed Components
        TLabel *Label1;
        TComboBox *cbNic;
        TLabel *Label2;
        TEdit *editChanCount;
        TButton *btnStart;
        TButton *btnStop;
        TLabel *Label3;
        TEdit *editChan1;
        TLabel *Label4;
        TEdit *editRoot;
        TLabel *Label5;
        TLabel *Label6;
        TEdit *editChan2;
        TLabel *Label7;
        TEdit *editChan3;
        TLabel *Label8;
        TEdit *editChan4;
        void __fastcall btnStartClick(TObject *Sender);
        void __fastcall FormCreate(TObject *Sender);
        void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
        void __fastcall btnStopClick(TObject *Sender);
private:	// User declarations
public:		// User declarations
        __fastcall TForm1(TComponent* Owner);

void OnCallOffered(int ChanIndex, const char* CallerIP, const char* CallerID, const char* CalleeIP, const char* CalleeID, unsigned int CallTime, const char* UniqueID, const char* AudioFile, int CallDir);
void OnCallConnected(int ChanIndex, const char* CallerIP, const char* CallerID, const char* CalleeIP, const char* CalleeID, unsigned int InitTime, unsigned int ConnectTime, const char* UniqueID, const char* AudioFile, int CallDir);
void OnCallEnd(int ChanIndex, const char* CallerIP, const char* CallerID, const char* CalleeIP, const char* CalleeID, unsigned int InitTime, unsigned int ConnectTime, unsigned int EndTime, const char* UniqueID, const char* AudioFile, int AudioFileNum, int Reason, int CallDir, const char* sDTMF, int Codec);
void LogStatus(int ch, const char* strLog);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
