VirtualBox

source: vbox/trunk/src/VBox/Main/include/HostUpdateImpl.h@ 85728

Last change on this file since 85728 was 85728, checked in by vboxsync, 5 years ago

Main/HostUpdateImpl.cpp: platformInfo should return Utf8Str and the strUserAgent variable should be Utf8Str rather than Bstr. Otherwise we end up with several unnecessary conversions between Bstr and Utf8Str, which is a complete waste of time. bugref:7983

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1/* $Id: HostUpdateImpl.h 85728 2020-08-12 19:50:53Z vboxsync $ */
2/** @file
3 * VirtualBox COM class implementation
4 */
5
6/*
7 * Copyright (C) 2020 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#ifndef MAIN_INCLUDED_HostUpdateImpl_h
19#define MAIN_INCLUDED_HostUpdateImpl_h
20#ifndef RT_WITHOUT_PRAGMA_ONCE
21# pragma once
22#endif
23
24#include "HostUpdateWrap.h"
25
26
27class ATL_NO_VTABLE HostUpdate
28 : public HostUpdateWrap
29{
30public:
31 DECLARE_EMPTY_CTOR_DTOR(HostUpdate)
32
33 HRESULT FinalConstruct();
34 void FinalRelease();
35
36 // public initializer/uninitializer for internal purposes only
37 HRESULT init(VirtualBox *aVirtualBox);
38 void uninit();
39
40private:
41 // wrapped IHostUpdate attributes and methods
42 HRESULT getUpdate(ComPtr<IHostUpdate> &aUpdate);
43 HRESULT updateCheck(UpdateCheckType_T aCheckType, ComPtr<IProgress> &aProgress);
44 HRESULT getUpdateResponse(BOOL *aUpdateNeeded);
45 HRESULT getUpdateVersion(com::Utf8Str &aUpdateVersion);
46 HRESULT getUpdateURL(com::Utf8Str &aUpdateURL);
47 HRESULT getUpdateCheckNeeded(BOOL *aUpdateCheckNeeded);
48
49 Utf8Str platformInfo();
50
51 VirtualBox * const mVirtualBox;
52 ComPtr<IHostUpdate> m_pHostUpdate;
53 BOOL m_updateNeeded;
54 Utf8Str m_updateVersion;
55 Utf8Str m_updateURL;
56
57 class UpdateCheckTask;
58
59 HRESULT i_updateCheckTask(UpdateCheckTask *pTask);
60 HRESULT i_checkForVBoxUpdate();
61};
62
63#endif /* !MAIN_INCLUDED_HostUpdateImpl_h */
64
65/* vi: set tabstop=4 shiftwidth=4 expandtab: */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette