[go: up one dir, main page]

Menu

[f020ae]: / script.h  Maximize  Restore  History

Download this file

47 lines (38 with data), 1.3 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/////////////////////////////////////////////////////////////////////////////////
// Author: Steven Lamerton
// Copyright: Copyright (C) 2007-2009 Steven Lamerton
// License: GNU GPL 2 (See readme for more info)
/////////////////////////////////////////////////////////////////////////////////
#ifndef H_SCRIPT
#define H_SCRIPT
#include <wx/arrstr.h>
#include <wx/datetime.h>
class frmProgress;
class ScriptManager{
public:
//Ensure the script is valid
bool Validate();
//Start the script
bool Execute();
//Runs a specific command in the script
bool ParseCommand(int i);
//Set up the progress bar
bool ProgressBarSetup();
bool CleanUp();
bool StartUp();
void SetCommand(const int& Command) {this->m_Command = Command;}
void SetScript(const wxArrayString& Script) {this->m_Script = Script;}
void SetPassword(const wxString& Password) {this->m_Password = Password;}
const int& GetCommand() const {return m_Command;}
const wxArrayString& GetScript() const {return m_Script;}
const wxDateTime& GetTime() const {return m_Time;}
int GetCount() const {return m_Script.GetCount();}
const wxString& GetPassword() const {return m_Password;}
private:
wxArrayString m_Script;
int m_Command;
wxString m_Password;
frmProgress* m_ProgressWindow;
wxDateTime m_Time;
};
#endif