VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/VBoxCredProv/VBoxCredPoller.h@ 26939

Last change on this file since 26939 was 25883, checked in by vboxsync, 15 years ago

Additions: more header fixes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1/* $Id: VBoxCredPoller.h 25883 2010-01-18 11:37:07Z vboxsync $ */
2/** @file
3 * VBoxCredPoller - Thread for retrieving user credentials.
4 */
5
6/*
7 * Copyright (C) 2009 Sun Microsystems, Inc.
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 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18 * Clara, CA 95054 USA or visit http://www.sun.com if you need
19 * additional information or have any questions.
20 */
21
22#ifndef ___VBoxCredPoller_h
23#define ___VBoxCredPoller_h
24
25#include <iprt/critsect.h>
26#include <iprt/thread.h>
27#include <iprt/semaphore.h>
28
29class VBoxCredProv;
30class VBoxCredential;
31
32class VBoxCredPoller
33{
34 public:
35
36 VBoxCredPoller();
37 virtual ~VBoxCredPoller();
38
39 public:
40
41 bool Initialize(VBoxCredProv *pProvider);
42 bool Shutdown();
43 VBoxCredProv* GetProvider() { return m_pProv; }
44 bool QueryCredentials(VBoxCredential *pCred);
45
46 protected:
47
48 void credentialsReset(void);
49 int credentialsRetrieve(void);
50 static int threadPoller(RTTHREAD ThreadSelf, void *pvUser);
51
52 protected:
53
54 RTTHREAD m_hThreadPoller; /* Thread handle */
55 RTCRITSECT m_csCredUpate;
56 VBoxCredProv *m_pProv; /* Pointer to parent */
57
58 char *m_pszUser; /* Our lovely credentials */
59 char *m_pszPw;
60 char *m_pszDomain;
61
62};
63
64#endif /* ___VBoxCredPoller_h */
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