llprefsvoice.h

Go to the documentation of this file.
00001 
00032 #ifndef LLPREFSVOICE_H
00033 #define LLPREFSVOICE_H
00034 
00035 #include "llpanel.h"
00036 
00037 class LLFloaterVoiceDeviceSettings;
00038 
00039 class LLPrefsVoiceLogic
00040 {
00041 public:
00042         LLPrefsVoiceLogic(LLPanel* panelp);
00043         virtual ~LLPrefsVoiceLogic(){};
00044         
00045         virtual void init();
00046 
00047         void apply();
00048         void cancel();
00049         void refresh();
00050         
00051         void setKey(KEY key, MASK mask);
00052 
00053 protected:
00054 
00055         static void onClickSetKey(void* user_data);
00056         static void onClickSetMiddleMouse(void* user_data);
00057         static void onEarLocationCommit(LLUICtrl* ctrl, void* user_data);
00058 
00059         BOOL mEnableVoice;
00060         BOOL mVoiceCallsFriendsOnly;
00061         BOOL mEnablePushToTalk;
00062         std::string mModifier;
00063         BOOL mPushToTalkToggle;
00064         S32  mEarLocation;
00065         LLCtrlSelectionInterface        *mCtrlEarLocation;
00066         
00067         BOOL mEatNextSetKeyClick;
00068 
00069         LLPanel* mPanel;
00070 };
00071 
00072 class LLPrefsVoice : public LLPanel
00073 {
00074 public:
00075         LLPrefsVoice();
00076         ~LLPrefsVoice();
00077 
00078         /*virtual*/ void draw();
00079         void apply();
00080         void cancel();
00081 
00082 protected:
00083         static void onClickVoiceDeviceSettingsBtn(void* user_data);
00084 
00085         LLPrefsVoiceLogic* mLogic;
00086         LLFloaterVoiceDeviceSettings* mVoiceDeviceSettings;
00087 };
00088 
00089 #endif // LLPREFSVOICE_H

Generated on Fri May 16 08:33:56 2008 for SecondLife by  doxygen 1.5.5