SnapshotImpl.h revision e67c6527ea1482264eb46a12493f9a0a4bcf4690
/* $Id$ */
/** @file
*
* VirtualBox COM class implementation
*/
/*
* Copyright (C) 2006-2010 Sun Microsystems, Inc.
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
#ifndef ____H_SNAPSHOTIMPL
#define ____H_SNAPSHOTIMPL
#include "VirtualBoxBase.h"
{
struct Snapshot;
}
{
Snapshot()
: m(NULL)
{ };
~Snapshot()
{ };
void FinalRelease();
// public initializer/uninitializer only for internal purposes
const Utf8Str &aDescription,
const RTTIMESPEC &aTimeStamp,
void uninit();
void beginSnapshotDelete();
void deparent();
// ISnapshot properties
// ISnapshot methods
// public methods only for internal purposes
/**
* Simple run-time type identification without having to enable C++ RTTI.
* The class IDs are defined in VirtualBoxBase.h.
* @return
*/
{
return clsidSnapshot;
}
/**
* Override of the default locking class to be used for validating lock
* order with the standard member lock handle.
*/
{
return LOCKCLASS_SNAPSHOTOBJECT;
}
const Utf8Str& stateFilePath() const;
RTTIMESPEC getTimeStamp() const;
void updateSavedStatePaths(const char *aOldPath,
const char *aNewPath);
void updateSavedStatePathsImpl(const char *aOldPath,
const char *aNewPath);
// for VirtualBoxSupportErrorInfoImpl
static const wchar_t *getComponentName()
{
return L"Snapshot";
}
struct Data; // opaque, defined in SnapshotImpl.cpp
Data *m;
};
#endif // ____H_SNAPSHOTIMPL
/* vi: set tabstop=4 shiftwidth=4 expandtab: */