/* $Id: VBoxCredProvPoller.h 40435 2012-03-12 18:01:39Z vboxsync $ */ /** @file * VBoxCredPoller - Thread for retrieving user credentials. */ /* * Copyright (C) 2012 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. */ #ifndef ___VBOX_CREDPROV_POLLER_H___ #define ___VBOX_CREDPROV_POLLER_H___ #include #include #include class VBoxCredProvProvider; class VBoxCredProvPoller { public: VBoxCredProvPoller(void); virtual ~VBoxCredProvPoller(void); int Initialize(VBoxCredProvProvider *pProvider); int Shutdown(void); protected: /** Static function for our poller routine, used in an own thread to * check for credentials on the host. */ static DECLCALLBACK(int) threadPoller(RTTHREAD ThreadSelf, void *pvUser); /** Thread handle. */ RTTHREAD m_hThreadPoller; /** Pointer to parent. Needed for notifying if credentials * are available. */ VBoxCredProvProvider *m_pProv; }; #endif /* !___VBOX_CREDPROV_POLLER_H___ */