Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
2.3 KiB

  1. // LoginCtx.h -- Login ConTeXt class declaration
  2. // (c) Copyright Schlumberger Technology Corp., unpublished work, created
  3. // 1999. This computer program includes Confidential, Proprietary
  4. // Information and is a Trade Secret of Schlumberger Technology Corp. All
  5. // use, disclosure, and/or reproduction is prohibited unless authorized
  6. // in writing. All Rights Reserved.
  7. #if !defined(SLBCSP_LOGINCTX_H)
  8. #define SLBCSP_LOGINCTX_H
  9. #include <map>
  10. #include "HCardCtx.h"
  11. #include "AccessTok.h"
  12. #include "LoginTask.h"
  13. // Encapsulates the login context of a card. These attributes would
  14. // be better handled as attributes of the CCI's card class itself.
  15. class LoginContext
  16. {
  17. public:
  18. // Types
  19. // C'tors/D'tors
  20. explicit
  21. LoginContext(HCardContext const &rcardctx,
  22. LoginIdentity const &rlid);
  23. ~LoginContext();
  24. // Operators
  25. // Operations
  26. void
  27. Activate(LoginTask &rlt);
  28. void
  29. Deactivate();
  30. void
  31. Nullify();
  32. // Access
  33. bool
  34. IsActive() const;
  35. // Predicates
  36. protected:
  37. // Types
  38. // C'tors/D'tors
  39. // Operators
  40. // Operations
  41. // Access
  42. // Predicates
  43. // Variables
  44. private:
  45. // Types
  46. // C'tors/D'tors
  47. // Operators
  48. // Operations
  49. // Access
  50. // Predicates
  51. // Variables
  52. bool m_fIsActive;
  53. AccessToken m_at;
  54. };
  55. #endif // SLBCSP_LOGINCTX_H