/indra/newview/llpanelvoicedevicesettings.h

https://bitbucket.org/lindenlab/viewer-beta/ · C++ Header · 67 lines · 31 code · 10 blank · 26 comment · 0 complexity · 8b65e170977604caee831d7dc595a838 MD5 · raw file

  1. /**
  2. * @file llpanelvoicedevicesettings.h
  3. * @author Richard Nelson
  4. * @brief Voice communication set-up wizard
  5. *
  6. * $LicenseInfo:firstyear=2001&license=viewerlgpl$
  7. * Second Life Viewer Source Code
  8. * Copyright (C) 2010, Linden Research, Inc.
  9. *
  10. * This library is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU Lesser General Public
  12. * License as published by the Free Software Foundation;
  13. * version 2.1 of the License only.
  14. *
  15. * This library is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  18. * Lesser General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU Lesser General Public
  21. * License along with this library; if not, write to the Free Software
  22. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  23. *
  24. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  25. * $/LicenseInfo$
  26. */
  27. #ifndef LL_LLPANELVOICEDEVICESETTINGS_H
  28. #define LL_LLPANELVOICEDEVICESETTINGS_H
  29. #include "llpanel.h"
  30. class LLPanelVoiceDeviceSettings : public LLPanel
  31. {
  32. public:
  33. LLPanelVoiceDeviceSettings();
  34. ~LLPanelVoiceDeviceSettings();
  35. /*virtual*/ void draw();
  36. /*virtual*/ BOOL postBuild();
  37. void apply();
  38. void cancel();
  39. void refresh();
  40. void initialize();
  41. void cleanup();
  42. /*virtual*/ void handleVisibilityChange ( BOOL new_visibility );
  43. void setUseTuningMode(bool use) { mUseTuningMode = use; };
  44. protected:
  45. std::string getLocalizedDeviceName(const std::string& en_dev_name);
  46. void onCommitInputDevice();
  47. void onCommitOutputDevice();
  48. F32 mMicVolume;
  49. std::string mInputDevice;
  50. std::string mOutputDevice;
  51. class LLComboBox *mCtrlInputDevices;
  52. class LLComboBox *mCtrlOutputDevices;
  53. BOOL mDevicesUpdated;
  54. bool mUseTuningMode;
  55. std::map<std::string, std::string> mLocalizedDeviceNames;
  56. };
  57. #endif // LL_LLPANELVOICEDEVICESETTINGS_H