PageRenderTime 120ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/newview/llversioninfo.h

https://bitbucket.org/lindenlab/viewer-beta/
C Header | 72 lines | 17 code | 12 blank | 43 comment | 0 complexity | cca23a2dd419b78702e1b0ee850b5b25 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llversioninfo.h
  3. * @brief Routines to access the viewer version and build information
  4. * @author Martin Reddy
  5. *
  6. * $LicenseInfo:firstyear=2009&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_LLVERSIONINFO_H
  28. #define LL_LLVERSIONINFO_H
  29. #include <string>
  30. ///
  31. /// This API provides version information for the viewer. This
  32. /// includes access to the major, minor, patch, and build integer
  33. /// values, as well as human-readable string representations. All
  34. /// viewer code that wants to query the current version should
  35. /// use this API.
  36. ///
  37. class LLVersionInfo
  38. {
  39. public:
  40. /// return the major verion number as an integer
  41. static S32 getMajor();
  42. /// return the minor verion number as an integer
  43. static S32 getMinor();
  44. /// return the patch verion number as an integer
  45. static S32 getPatch();
  46. /// return the build number as an integer
  47. static S32 getBuild();
  48. /// return the full viewer version as a string like "2.0.0.200030"
  49. static const std::string &getVersion();
  50. /// return the viewer version as a string like "2.0.0"
  51. static const std::string &getShortVersion();
  52. /// return the viewer version and channel as a string
  53. /// like "Second Life Release 2.0.0.200030"
  54. static const std::string &getChannelAndVersion();
  55. /// return the channel name, e.g. "Second Life"
  56. static const std::string &getChannel();
  57. /// reset the channel name used by the viewer.
  58. static void resetChannel(const std::string& channel);
  59. };
  60. #endif