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.

45 lines
1.1 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) Microsoft Corp. All rights reserved.
  4. //
  5. // FILE
  6. //
  7. // eapconfig.cpp
  8. //
  9. // SYNOPSIS
  10. //
  11. // Defines the class EapAdd.
  12. //
  13. ///////////////////////////////////////////////////////////////////////////////
  14. #include "stdafx.h"
  15. #include "eapconfig.h"
  16. void EapConfig::GetEapTypesNotSelected(CStrArray& typesNotSelected) const
  17. {
  18. // copy all the types of the machine
  19. typesNotSelected = types;
  20. // remove each type already selected
  21. for (int i = 0; i < typesSelected.GetSize(); ++i)
  22. {
  23. int pos = typesNotSelected.Find(*typesSelected.GetAt(i));
  24. typesNotSelected.DeleteAt(pos);
  25. }
  26. }
  27. EapConfig& EapConfig::operator=(const EapConfig& source)
  28. {
  29. types = source.types;
  30. ids = source.ids;
  31. typeKeys = source.typeKeys;
  32. infoArray.RemoveAll();
  33. int count = source.infoArray.GetSize();
  34. for(int i = 0; i < count; ++i)
  35. {
  36. infoArray.Add(source.infoArray[i]);
  37. }
  38. typesSelected = source.typesSelected;
  39. return *this;
  40. }