101 lines
2.2 KiB
C++
101 lines
2.2 KiB
C++
/** @file
|
|
*
|
|
* VirtualBox API class wrapper code for IToken.
|
|
*
|
|
* DO NOT EDIT! This is a generated file.
|
|
* Generated from: src/VBox/Main/idl/VirtualBox.xidl
|
|
* Generator: src/VBox/Main/idl/apiwrap-server.xsl
|
|
*/
|
|
|
|
/**
|
|
* Copyright (C) 2010-2014 Oracle Corporation
|
|
*
|
|
* This file is part of VirtualBox Open Source Edition (OSE), as
|
|
* available from http://www.virtualbox.org. This file is free software;
|
|
* you can redistribute it and/or modify it under the terms of the GNU
|
|
* 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.
|
|
*/
|
|
|
|
#define LOG_GROUP_MAIN_OVERRIDE LOG_GROUP_MAIN_TOKEN
|
|
|
|
#include "TokenWrap.h"
|
|
#include "Logging.h"
|
|
|
|
DEFINE_EMPTY_CTOR_DTOR(TokenWrap)
|
|
|
|
//
|
|
// IToken properties
|
|
//
|
|
|
|
//
|
|
// IToken methods
|
|
//
|
|
|
|
STDMETHODIMP TokenWrap::Abandon()
|
|
{
|
|
LogRelFlow(("{%p} %s:enter\n", this, "Token::abandon"));
|
|
|
|
VirtualBoxBase::clearError();
|
|
|
|
HRESULT hrc;
|
|
|
|
try
|
|
{
|
|
|
|
AutoCaller autoCaller(this);
|
|
if (FAILED(autoCaller.rc()))
|
|
throw autoCaller.rc();
|
|
|
|
hrc = abandon(autoCaller);
|
|
}
|
|
catch (HRESULT hrc2)
|
|
{
|
|
hrc = hrc2;
|
|
}
|
|
catch (...)
|
|
{
|
|
hrc = VirtualBoxBase::handleUnexpectedExceptions(this, RT_SRC_POS);
|
|
}
|
|
|
|
LogRelFlow(("{%p} %s: leave hrc=%Rhrc\n", this, "Token::abandon", hrc));
|
|
return hrc;
|
|
}
|
|
|
|
STDMETHODIMP TokenWrap::Dummy()
|
|
{
|
|
LogRelFlow(("{%p} %s:enter\n", this, "Token::dummy"));
|
|
|
|
VirtualBoxBase::clearError();
|
|
|
|
HRESULT hrc;
|
|
|
|
try
|
|
{
|
|
|
|
AutoCaller autoCaller(this);
|
|
if (FAILED(autoCaller.rc()))
|
|
throw autoCaller.rc();
|
|
|
|
hrc = dummy();
|
|
}
|
|
catch (HRESULT hrc2)
|
|
{
|
|
hrc = hrc2;
|
|
}
|
|
catch (...)
|
|
{
|
|
hrc = VirtualBoxBase::handleUnexpectedExceptions(this, RT_SRC_POS);
|
|
}
|
|
|
|
LogRelFlow(("{%p} %s: leave hrc=%Rhrc\n", this, "Token::dummy", hrc));
|
|
return hrc;
|
|
}
|
|
|
|
#ifdef VBOX_WITH_XPCOM
|
|
NS_DECL_CLASSINFO(TokenWrap)
|
|
NS_IMPL_THREADSAFE_ISUPPORTS1_CI(TokenWrap, IToken)
|
|
#endif // VBOX_WITH_XPCOM
|