VirtualBoxErrorInfoImpl.h revision aa7a0da4ef5b49ee8bbd44b36b5b888af3c4d97f
/** @file
* VirtualBoxErrorInfo COM class definition.
*/
/*
* Copyright (C) 2006-2010 Oracle Corporation
*
* 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.
*/
#ifndef ____H_VIRTUALBOXERRORINFOIMPL
#define ____H_VIRTUALBOXERRORINFOIMPL
#include "VirtualBoxBase.h"
#ifndef VBOX_WITH_XPCOM /* IErrorInfo doesn't inherit from IDispatch, ugly 3am hack: */
#endif
{
#ifndef VBOX_WITH_XPCOM
// IDispatch forwarding - 3am hack.
typedef IDispatchImpl<IVirtualBoxErrorInfo, &IID_IVirtualBoxErrorInfo, &LIBID_VirtualBox, kTypeLibraryMajorVersion, kTypeLibraryMinorVersion> idi;
{
}
{
}
STDMETHOD(GetIDsOfNames)(REFIID rIID, LPOLESTR *papwszNames, UINT cNames, LCID Lcid, DISPID *paDispIDs)
{
}
{
}
#else // defined(VBOX_WITH_XPCOM)
#endif
: m_resultCode(S_OK)
{}
// public initializer/uninitializer for internal purposes only
const char *pcszComponent,
// IVirtualBoxErrorInfo properties
// FIXME: declare these here until VBoxSupportsTranslation base
// is available in this class.
static const char *tr(const char *a) { return a; }
const char * /* a */,
const char * /* b */,
void * /* c */) { return rc; }
};
#endif // !____H_VIRTUALBOXERRORINFOIMPL
/* vi: set tabstop=4 shiftwidth=4 expandtab: */