PageRenderTime 68ms CodeModel.GetById 21ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/newview/llloginhandler.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 57 lines | 17 code | 9 blank | 31 comment | 0 complexity | d18b3b747ff553bb780c010693a97c16 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llloginhandler.h
  3. * @brief Handles filling in the login panel information from a SLURL
  4. * such as secondlife:///app/login?first=Bob&last=Dobbs
  5. *
  6. * $LicenseInfo:firstyear=2008&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 LLLOGINHANDLER_H
  28. #define LLLOGINHANDLER_H
  29. #include "llcommandhandler.h"
  30. #include "llsecapi.h"
  31. class LLLoginHandler : public LLCommandHandler
  32. {
  33. public:
  34. // allow from external browsers
  35. LLLoginHandler() : LLCommandHandler("login", UNTRUSTED_ALLOW) { }
  36. /*virtual*/ bool handle(const LLSD& tokens, const LLSD& query_map, LLMediaCtrl* web);
  37. // Fill in our internal fields from a SLURL like
  38. // secondlife:///app/login?first=Bob&last=Dobbs
  39. bool parseDirectLogin(std::string url);
  40. // Web-based login unsupported
  41. //LLUUID getWebLoginKey() const { return mWebLoginKey; }
  42. LLPointer<LLCredential> loadSavedUserLoginInfo();
  43. LLPointer<LLCredential> initializeLoginInfo();
  44. private:
  45. void parse(const LLSD& queryMap);
  46. };
  47. extern LLLoginHandler gLoginHandler;
  48. #endif