PageRenderTime 31ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/newview/llviewerwindowlistener.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 51 lines | 15 code | 7 blank | 29 comment | 0 complexity | 13c2ac8e34fd80a889eca3d44c7eaa40 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llviewerwindowlistener.h
  3. * @author Nat Goodspeed
  4. * @date 2009-06-30
  5. * @brief Event API for subset of LLViewerWindow methods
  6. *
  7. * $LicenseInfo:firstyear=2009&license=viewerlgpl$
  8. * Second Life Viewer Source Code
  9. * Copyright (C) 2010, Linden Research, Inc.
  10. *
  11. * This library is free software; you can redistribute it and/or
  12. * modify it under the terms of the GNU Lesser General Public
  13. * License as published by the Free Software Foundation;
  14. * version 2.1 of the License only.
  15. *
  16. * This library is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  19. * Lesser General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU Lesser General Public
  22. * License along with this library; if not, write to the Free Software
  23. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  24. *
  25. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  26. * $/LicenseInfo$
  27. */
  28. #if ! defined(LL_LLVIEWERWINDOWLISTENER_H)
  29. #define LL_LLVIEWERWINDOWLISTENER_H
  30. #include "lleventapi.h"
  31. class LLViewerWindow;
  32. class LLSD;
  33. /// Listen on an LLEventPump with specified name for LLViewerWindow request events.
  34. class LLViewerWindowListener: public LLEventAPI
  35. {
  36. public:
  37. /// Bind the LLViewerWindow instance to use (e.g. gViewerWindow).
  38. LLViewerWindowListener(LLViewerWindow* llviewerwindow);
  39. private:
  40. void saveSnapshot(const LLSD& event) const;
  41. void requestReshape(LLSD const & event_data) const;
  42. LLViewerWindow* mViewerWindow;
  43. };
  44. #endif /* ! defined(LL_LLVIEWERWINDOWLISTENER_H) */