PageRenderTime 42ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/xbmc/platform/android/jni/List.h

http://github.com/xbmc/xbmc
C Header | 36 lines | 13 code | 4 blank | 19 comment | 0 complexity | 148541ae07777f739bfe22d868fb98b4 MD5 | raw file
Possible License(s): GPL-3.0, CC-BY-SA-3.0, LGPL-2.0, 0BSD, Unlicense, GPL-2.0, AGPL-1.0, BSD-3-Clause, LGPL-2.1, LGPL-3.0
  1. #pragma once
  2. /*
  3. * Copyright (C) 2013 Team XBMC
  4. * http://xbmc.org
  5. *
  6. * This Program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2, or (at your option)
  9. * any later version.
  10. *
  11. * This Program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with XBMC; see the file COPYING. If not, see
  18. * <http://www.gnu.org/licenses/>.
  19. *
  20. */
  21. #include "JNIBase.h"
  22. template <typename T>
  23. class CJNIList : public CJNIBase
  24. {
  25. public:
  26. CJNIList(const jni::jhobject &object) : CJNIBase(object){};
  27. ~CJNIList(){};
  28. T get(int index) const;
  29. int size() const;
  30. private:
  31. CJNIList();
  32. };