PageRenderTime 74ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/llui/llnotificationsutil.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 66 lines | 26 code | 13 blank | 27 comment | 0 complexity | 888d6fa111ae9aca4042be6926fcff35 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llnotificationsutil.h
  3. *
  4. * $LicenseInfo:firstyear=2008&license=viewerlgpl$
  5. * Second Life Viewer Source Code
  6. * Copyright (C) 2010, Linden Research, Inc.
  7. *
  8. * This library is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU Lesser General Public
  10. * License as published by the Free Software Foundation;
  11. * version 2.1 of the License only.
  12. *
  13. * This library is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * Lesser General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with this library; if not, write to the Free Software
  20. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  21. *
  22. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  23. * $/LicenseInfo$
  24. */
  25. #ifndef LLNOTIFICATIONSUTIL_H
  26. #define LLNOTIFICATIONSUTIL_H
  27. // The vast majority of clients of the notifications system just want to add
  28. // a notification to the screen, so define this lightweight public interface
  29. // to avoid including the heavyweight llnotifications.h
  30. #include "llnotificationptr.h"
  31. #include <boost/function.hpp>
  32. class LLSD;
  33. namespace LLNotificationsUtil
  34. {
  35. LLNotificationPtr add(const std::string& name);
  36. LLNotificationPtr add(const std::string& name,
  37. const LLSD& substitutions);
  38. LLNotificationPtr add(const std::string& name,
  39. const LLSD& substitutions,
  40. const LLSD& payload);
  41. LLNotificationPtr add(const std::string& name,
  42. const LLSD& substitutions,
  43. const LLSD& payload,
  44. const std::string& functor_name);
  45. LLNotificationPtr add(const std::string& name,
  46. const LLSD& substitutions,
  47. const LLSD& payload,
  48. boost::function<void (const LLSD&, const LLSD&)> functor);
  49. S32 getSelectedOption(const LLSD& notification, const LLSD& response);
  50. void cancel(LLNotificationPtr pNotif);
  51. LLNotificationPtr find(LLUUID uuid);
  52. }
  53. #endif