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

#ifndef uMainH
#define uMainH
//---------------------------------------------------------------------------
#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 TfMain : 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;
  void __fastcall FormCreate(TObject *Sender);
  void __fastcall btnOpenTaskItemsClick(TObject *Sender);
private:
  void LogLine(const String &message);
  String BuildLaunchUrl(const String &baseUrl, const String &userId, const String &taskId, const String &code);

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