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

#ifndef fMainH
#define fMainH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include <Uni.hpp>
#include <MemDS.hpp>
#include <DBAccess.hpp>
#include <Data.DB.hpp>
#include "MySQLUniProvider.hpp"
#include "UniProvider.hpp"
//---------------------------------------------------------------------------
class TfrmMain : public TForm
{
__published:	// IDE-managed Components
  TButton *btnOpenTaskItems;
  TMemo *memoLog;
  TEdit *edtUserId;
  TEdit *edtTaskId;
  TEdit *edtWebUrl;
  TEdit *edtExpSeconds;
  TLabel *lblWCBaseUrl;
  TLabel *lblUserId;
  TLabel *lblTaskId;
  TLabel *Label2;
  TUniConnection *ucETask;
  TUniQuery *uqWebTasksUrl;
  TMySQLUniProvider *MySQLUniProvider1;
  TButton *btnTaskItemsLogin;
  TButton *btnConnect;
  void __fastcall FormCreate(TObject *Sender);
  void __fastcall btnOpenTaskItemsClick(TObject *Sender);
  void __fastcall btnTaskItemsLoginClick(TObject *Sender);
  void __fastcall btnConnectClick(TObject *Sender);
private:
  void LogLine(String message);
  String BuildLaunchUrl(String baseUrl, String userId, String taskId, String code);

public:		// User declarations
  __fastcall TfrmMain(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TfrmMain *frmMain;
//---------------------------------------------------------------------------
#endif
