|
|
5.0
/*
Copyright (c) 2008 TrueCrypt Foundation. All rights reserved.
Governed by the TrueCrypt License 2.4 the full text of which is contained
in the file License.txt included in TrueCrypt binary and source code
distribution packages.
*/
#ifndef TC_HEADER_Main_AppMain
#define TC_HEADER_Main_AppMain
#include "Main.h"
#include "UserInterface.h"
#include "UserInterfaceType.h"
namespace TrueCrypt
{
class Application
{
public:
static wxApp* CreateConsoleApp ();
static wxApp* CreateGuiApp ();
static FilePath GetConfigFilePath (const wxString &configFileName, bool createConfigDir = false);
static DirectoryPath GetExecutableDirectory ();
static FilePath GetExecutablePath ();
static int GetExitCode () { return ExitCode; }
static wstring GetName () { return L"TrueCrypt"; }
static UserInterface *GetUserInterface () { return mUserInterface; }
static void Initialize (UserInterfaceType::Enum type);
static void SetExitCode (int code) { ExitCode = code; }
protected:
static int ExitCode;
static UserInterface *mUserInterface;
};
}
#endif // TC_HEADER_Main_AppMain
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.