/* Copyright (c) 2008-2010 TrueCrypt Developers Association. All rights reserved. Governed by the TrueCrypt License 3.0 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_CommandInterface #define TC_HEADER_Main_CommandInterface #include "System.h" #include "Main.h" #include "Volume/VolumeInfo.h" #include "Core/MountOptions.h" #include "Core/VolumeCreator.h" #include "UserPreferences.h" #include "UserInterfaceType.h" namespace VeraCrypt { struct CommandId { enum Enum { None, AutoMountDevices, AutoMountDevicesFavorites, AutoMountFavorites, BackupHeaders, ChangePassword, CreateKeyfile, CreateVolume, DeleteSecurityTokenKeyfiles, DismountVolumes, DisplayVersion, DisplayVolumeProperties, ExportSecurityTokenKeyfile, Help, ImportSecurityTokenKeyfiles, ListSecurityTokenKeyfiles, ListVolumes, MountVolume, RestoreHeaders, SavePreferences, Test }; }; struct CommandLineInterface { public: CommandLineInterface (int argc, wchar_t** argv, UserInterfaceType::Enum interfaceType); virtual ~CommandLineInterface (); CommandId::Enum ArgCommand; bool ArgDisplayPassword; shared_ptr ArgEncryptionAlgorithm; shared_ptr ArgFilePath; VolumeCreationOptions::FilesystemType::Enum ArgFilesystem; bool ArgForce; shared_ptr ArgHash; shared_ptr ArgKeyfiles; MountOptions ArgMountOptions; shared_ptr ArgMountPoint; shared_ptr ArgNewHash; shared_ptr ArgNewKeyfiles; shared_ptr ArgNewPassword; int ArgNewPim; bool ArgNoHiddenVolumeProtection; shared_ptr ArgPassword; int ArgPim; bool ArgQuick; FilesystemPath ArgRandomSourcePath; uint64 ArgSize; shared_ptr ArgVolumePath; VolumeInfoList ArgVolumes; VolumeType::Enum ArgVolumeType; bool ArgTrueCryptMode; bool StartBackgroundTask; UserPreferences Preferences; protected: void CheckCommandSingle () const; shared_ptr ToKeyfileList (const wxString &arg) const; VolumeInfoList GetMountedVolumes (const wxString &filter) const; private: CommandLineInterface (const CommandLineInterface &); CommandLineInterface &operator= (const CommandLineInterface &); }; extern auto_ptr CmdLine; } #endif // TC_HEADER_Main_CommandInterface 5+e9++77+85+ea+f5+42+3d+26+5c++..%60.o...w...B%3D%26%5C+56+e6+2e+e5+eb+8e+98+e8++9e+2e+88+d2+af+7b+2c+21++V............%7B%2C%21+5e+af+8f+64+c7+73+de+f0++d1+5a+e1+7d+b2+d1+a4+27++%5E..d.s...Z.%7D...%27+8e+04+29+35+46+89+3d+54++94+e5+94+57+ad+25+ba+3d++..%295F.%3DT...W.%25.%3D+39+39+66+58+01+bf+93+e7++bc+4e+b0+de+96+bd+d7+fb++99fX.....N......+ce+9e+26+35+c3+e2+1d+01++b6+73+13+da+a0+7a+70+a2++..%265.....s...zp.+bc+3d+9a+4d+6e+6f+38+12++5c+81+7b+a5+94+d0+63+bf++.%3D.Mno8.%5C.%7B...c.+68+10+86+4c+3a+cc+ea+b4++82+12+89+6b+54+ae+09+67++h..L%3A......kT..g+b3+f3+a1+6f+2e+31+27+2b++5e+75+5f+bb+ec+0a+10+0b++...o.1%27%2B%5Eu_.....+f7+39+11+c7+25+17+4c+26++63+a7+75+5c+3b+a9+6d+02++.9..%25.L%26c.u%5C%3B.m.+0d+7e+49+10+39+9c+55+3d++6c+48+08+82+92+87+cf+eb++.%7EI.9.U%3DlH......+aa+56+07+41+10+be+75+6f++6d+80+1c+e2+39+25+dd+d7++.V.A..uom...9%25..+87+d1+d9+74+1e+f7+7f+db++57+79+dd+06+e2+c2+e5+99++...t....Wy......+69+06+8b+31+2b+86+c8+a8++3f+c1+16+51+8f+2c+53+1f++i..1%2B...%3F..Q.%2CS.+d1+1c+82+2e+98+0f+36+0e++18+46+7c+14+e4+47+fa+7e++......6..F%7C..G.%7E+e5+34+da+d2+9a+b9+12+9d++2a+18+27+ff+b9+57+5f+f8++.4......*.%27..W_.+8c+40+2e+c1+79+13+0d+ed++a6+8d+4a+b8+39+c2+59+69++.%40..y.....J.9.Yi+45+b2+d2+95+98+c5+49+de++f0+75+16+70+c1+57+ed+d2++E.....I..u.p.W..+a3+ed+79+3b+37+ce+9c+e5++39+42+2e+e9+dd+91+7f+34++..y%3B7...9B.....4+2b+5e+fe+95+af+ee+8b+21++4e+92+8a+ab+54+8d+cb+4b++%2B%5E.....%21N...T..K+18+bd+13+25+68+d3+da+88++e1+dc+9b+3a+d1+f7+3f+b3++...%25h......%3A..%3F.+25+4e+44+8f+3c+bd+8f+1f++b1+e4+04+90+c9+12+91+7f++%25ND.%3C...........+aa+53+17+dc+38+2c+c9+0b++1a+49+7d+39+f0+dc+40+3c++.S..8%2C...I%7D9..%40%3C+9e+2f+d7+26+ed+e1+92+24++3d+ea+09+0c+85+a8+0f+01++.%2F.%26...%24%3D.......+57+9c+f4+a5+49+2f+cc+06++a0+50+e7+40+ba+9a+ef+e7++W...I%2F...P.%40....+16+33+e0+c4+b0+78+8b+04++8a+5d+eb+7e+99+60+5e+ce++.3...x...%5D.%7E.%60%5E.+fe+00+5d+47+d1+35+0a+5a++7f+76+a3+09+f1+f5+33+cb++..%5DG.5.Z.v....3.+be+20+91+d2+67+d3+a5+ba++87+0c+82+3a+98+3a+3b+44++.+..g......%3A.%3A%3BD+be+ce+ed+ca+fe+40+bf+5b++5a+f2+83+5c+9a+3a+47+ca++.....%40.%5BZ..%5C.%3AG.+1c+03+9c+23+06+82+f0+9b++69+24+aa+e4+8c+48+4a+6e++...%23....i%24...HJn+90+61+f0+23+99+56+ec+f3++a9+a1+01+db+3c+13+8e+ad++.a.%23.V......%3C...+e6+1f+3c+8e+5e+fe+39+0c++75+60+bc+6a+c2+54+25+5f++..%3C.%5E.9.u%60.j.T%25_+4e+3b+2c+44+ea+de+08+be++78+bd+78+93+6c+de+2a+e5++N%3B%2CD....x.x.l.*.+39+f1+ad+4d+77+3c+e0+86++f0+24+46+33+8f+5b+95+48++9..Mw%3C...%24F3.%5B.H+24+21+a1+4a+97+ce+e9+ed++8a+93+04+2a+db+25+26+26++%24%21.J.......*.%25%26%26