mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-12 11:28:26 -06:00
Change namespace from TrueCrypt to VeraCrypt. Rename method from Resources Resources::GetTrueCryptIcon to Resources::GetVeraCryptIcon.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
#include "Buffer.h"
|
||||
#include "Exception.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
Buffer::Buffer () : DataPtr (nullptr), DataSize (0)
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include "PlatformBase.h"
|
||||
#include "Memory.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
|
||||
class ConstBufferPtr
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include "PlatformBase.h"
|
||||
#include "FilesystemPath.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
class Directory
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#include "Event.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
void Event::Connect (const EventConnectorBase &connector)
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include "Mutex.h"
|
||||
#include "SharedPtr.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
struct EventArgs
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "Exception.h"
|
||||
#include "SerializerFactory.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
void Exception::Deserialize (shared_ptr <Stream> stream)
|
||||
{
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include "PlatformBase.h"
|
||||
#include "Serializable.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
#define TC_SERIALIZABLE_EXCEPTION(TYPE) TC_SERIALIZABLE (TYPE); \
|
||||
virtual Exception *CloneNew () { return new TYPE (*this); } \
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include "FilesystemPath.h"
|
||||
#include "SystemException.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
class File
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include <utime.h>
|
||||
#endif
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
File::~File ()
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include "SharedPtr.h"
|
||||
#include "Stream.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
class FileStream : public Stream
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include "SharedPtr.h"
|
||||
#include "StringConverter.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
struct FilesystemPathType
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#ifndef TC_HEADER_Platform_ForEach
|
||||
#define TC_HEADER_Platform_ForEach
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
class ForEach
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
#include "PlatformBase.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
struct Functor
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "Memory.h"
|
||||
#include "Exception.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
void *Memory::Allocate (std::size_t size)
|
||||
{
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
# error Unsupported byte ordering detected.
|
||||
#endif
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
class Memory
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "Exception.h"
|
||||
#include "MemoryStream.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
MemoryStream::MemoryStream (const ConstBufferPtr &data) :
|
||||
ReadPosition (0)
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include "PlatformBase.h"
|
||||
#include "Stream.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
class MemoryStream : public Stream
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#endif
|
||||
#include "PlatformBase.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
class Mutex
|
||||
{
|
||||
|
||||
@@ -31,7 +31,7 @@ using namespace std;
|
||||
#define nullptr 0
|
||||
#endif
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
#ifdef _MSC_VER
|
||||
# ifndef TC_INT_TYPES_DEFINED
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#include "Thread.h"
|
||||
#include "Common/Tcdefs.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
// make_shared_auto, File, Stream, MemoryStream, Endian, Serializer, Serializable
|
||||
void PlatformTest::SerializerTest ()
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include "PlatformBase.h"
|
||||
#include "Thread.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
class PlatformTest
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "Serializable.h"
|
||||
#include "SerializerFactory.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
string Serializable::DeserializeHeader (shared_ptr <Stream> stream)
|
||||
{
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include "Serializer.h"
|
||||
#include "SerializerFactory.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
class Serializable
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "Memory.h"
|
||||
#include "Serializer.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
template <typename T>
|
||||
T Serializer::Deserialize ()
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include "SharedPtr.h"
|
||||
#include "Stream.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
class Serializer
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <stdexcept>
|
||||
#include "SerializerFactory.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
void SerializerFactory::Deinitialize ()
|
||||
{
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include "PlatformBase.h"
|
||||
#include "StringConverter.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
class Serializable;
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
#ifdef nullptr
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
template <class T>
|
||||
class SharedPtr
|
||||
@@ -135,7 +135,7 @@ namespace TrueCrypt
|
||||
#ifdef shared_ptr
|
||||
#undef shared_ptr
|
||||
#endif
|
||||
#define shared_ptr TrueCrypt::SharedPtr
|
||||
#define shared_ptr VeraCrypt::SharedPtr
|
||||
|
||||
#ifdef make_shared
|
||||
#undef make_shared
|
||||
@@ -151,7 +151,7 @@ namespace TrueCrypt
|
||||
return shared_ptr <T> (new T (arg));
|
||||
}
|
||||
|
||||
#define make_shared TrueCrypt::make_shared
|
||||
#define make_shared VeraCrypt::make_shared
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include "PlatformBase.h"
|
||||
#include "Mutex.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
template <class T>
|
||||
class SharedVal
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include "PlatformBase.h"
|
||||
#include "Buffer.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
class Stream
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "StringConverter.h"
|
||||
#include "SystemException.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
void StringConverter::Erase (string &str)
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include <stdlib.h>
|
||||
#include "PlatformBase.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
class StringConverter
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "PlatformBase.h"
|
||||
#include "Mutex.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
class SyncEvent
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include "PlatformBase.h"
|
||||
#include "Exception.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
class SystemException : public Exception
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
#include "PlatformBase.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
class SystemInfo
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include "Platform/PlatformBase.h"
|
||||
#include "Platform/StringConverter.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
class SystemLog
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#include "TextReader.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
TextReader::TextReader (const FilePath &path)
|
||||
{
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include "SharedPtr.h"
|
||||
#include "Stream.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
class TextReader
|
||||
{
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include "SharedPtr.h"
|
||||
#include "SyncEvent.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
class Thread
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
#include "PlatformBase.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
class Time
|
||||
{
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include "Platform/Finally.h"
|
||||
#include "Platform/SystemException.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
static Mutex ReadDirMutex; // readdir_r() may be unsafe on some systems
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
#include "Platform/File.h"
|
||||
#include "Platform/TextReader.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
#if 0
|
||||
# define TC_TRACE_FILE_OPERATIONS
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include <stdio.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
void FilesystemPath::Delete () const
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "Platform/Mutex.h"
|
||||
#include "Platform/SystemException.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
Mutex::Mutex ()
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "Pipe.h"
|
||||
#include "Platform/SystemException.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
Pipe::Pipe ()
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
#include "Platform/PlatformBase.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
class Pipe
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "Poller.h"
|
||||
#include "Platform/SystemException.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
Poller::Poller (int fileDescriptor1, int fileDescriptor2, int fileDescriptor3, int fileDescriptor4)
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
#include "Platform/PlatformBase.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
class Poller
|
||||
{
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include "Platform/Unix/Pipe.h"
|
||||
#include "Platform/Unix/Poller.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
string Process::Execute (const string &processName, const list <string> &arguments, int timeOut, ProcessExecFunctor *execFunctor, const Buffer *inputData)
|
||||
{
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include "Platform/Buffer.h"
|
||||
#include "Platform/Functor.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
struct ProcessExecFunctor
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "Platform/SyncEvent.h"
|
||||
#include "Platform/SystemException.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
SyncEvent::SyncEvent ()
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include "Platform/SystemException.h"
|
||||
#include "Platform/StringConverter.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
SystemException::SystemException ()
|
||||
: ErrorCode (errno)
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "Platform/SystemInfo.h"
|
||||
#include <sys/utsname.h>
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
wstring SystemInfo::GetPlatformName ()
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <syslog.h>
|
||||
#include "Platform/SystemLog.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
void SystemLog::WriteDebug (const string &debugMessage)
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include "Platform/Thread.h"
|
||||
#include "Platform/SystemLog.h"
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
void Thread::Join () const
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
uint64 Time::GetCurrent ()
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
|
||||
namespace TrueCrypt
|
||||
namespace VeraCrypt
|
||||
{
|
||||
struct UserId
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user