Kodi Development 22.0
for Binary and Script based Add-Ons
 
Loading...
Searching...
No Matches
ModuleXbmc.h
1/*
2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
8
9#pragma once
10
11#include "AddonString.h"
12#include "Tuple.h"
13
14#include "utils/LangCodeExpander.h"
15#include "swighelper.h"
16#include <vector>
17
18#ifndef DOXYGEN_SHOULD_SKIP_THIS
19namespace XBMCAddon
20{
21 namespace xbmc
22 {
23#ifndef SWIG
24 // This is a bit of a hack to get around a SWIG problem
25 extern const int lLOGDEBUG;
26#endif
27#endif /* DOXYGEN_SHOULD_SKIP_THIS */
28
29 //
38 //
39
40#ifdef DOXYGEN_SHOULD_USE_THIS
83 log(...);
84#else
85 void log(const char* msg, int level = lLOGDEBUG);
86#endif
87
88#ifdef DOXYGEN_SHOULD_USE_THIS
105#else
106 void shutdown();
107#endif
108
109#ifdef DOXYGEN_SHOULD_USE_THIS
126#else
127 void restart();
128#endif
129
130#ifdef DOXYGEN_SHOULD_USE_THIS
149#else
150 void executescript(const char* script);
151#endif
152
153#ifdef DOXYGEN_SHOULD_USE_THIS
178#else
179 void executebuiltin(const char* function, bool wait = false);
180#endif
181
182#ifdef DOXYGEN_SHOULD_USE_THIS
204#else
205 String executeJSONRPC(const char* jsonrpccommand);
206#endif
207
208#ifdef DOXYGEN_SHOULD_USE_THIS
239 sleep(...);
240#else
241 void sleep(long timemillis);
242#endif
243
244#ifdef DOXYGEN_SHOULD_USE_THIS
268#else
269 String getLocalizedString(int id);
270#endif
271
272#ifdef DOXYGEN_SHOULD_USE_THIS
295#else
296 String getSkinDir();
297#endif
298
299#ifdef DOXYGEN_SHOULD_USE_THIS
329#else
330 String getLanguage(int format = CLangCodeExpander::ENGLISH_NAME, bool region = false);
331#endif
332
333#ifdef DOXYGEN_SHOULD_USE_THIS
352#else
353 String getIPAddress();
354#endif
355
356#ifdef DOXYGEN_SHOULD_USE_THIS
382#else
383 long getDVDState();
384#endif
385
386#ifdef DOXYGEN_SHOULD_USE_THIS
405#else
406 long getFreeMem();
407#endif
408
409#ifdef DOXYGEN_SHOULD_USE_THIS
432#else
433 String getInfoLabel(const char* cLine);
434#endif
435
436#ifdef DOXYGEN_SHOULD_USE_THIS
461#else
462 String getInfoImage(const char * infotag);
463#endif
464
465#ifdef DOXYGEN_SHOULD_USE_THIS
490#else
491 void playSFX(const char* filename, bool useCached = true);
492#endif
493
494#ifdef DOXYGEN_SHOULD_USE_THIS
512#else
513 void stopSFX();
514#endif
515
516#ifdef DOXYGEN_SHOULD_USE_THIS
536#else
537 void enableNavSounds(bool yesNo);
538#endif
539
540#ifdef DOXYGEN_SHOULD_USE_THIS
565#else
566 bool getCondVisibility(const char *condition);
567#endif
568
569#ifdef DOXYGEN_SHOULD_USE_THIS
588#else
589 int getGlobalIdleTime();
590#endif
591
592#ifdef DOXYGEN_SHOULD_USE_THIS
612#else
613 String getCacheThumbName(const String& path);
614#endif
615
616#ifdef DOXYGEN_SHOULD_USE_THIS
639#else
640 Tuple<String,String> getCleanMovieTitle(const String& path, bool usefoldername = false);
641#endif
642
643#ifdef DOXYGEN_SHOULD_USE_THIS
668#else
669 String getRegion(const char* id);
670#endif
671
672#ifdef DOXYGEN_SHOULD_USE_THIS
699#else
700 String getSupportedMedia(const char* mediaType);
701#endif
702
703#ifdef DOXYGEN_SHOULD_USE_THIS
727#else
728 bool skinHasImage(const char* image);
729#endif
730
731#ifdef DOXYGEN_SHOULD_USE_THIS
763#else
764 bool startServer(int iTyp, bool bStart);
765#endif
766
767#ifdef DOXYGEN_SHOULD_USE_THIS
784#else
785 void audioSuspend();
786#endif
787
788#ifdef DOXYGEN_SHOULD_USE_THIS
805#else
806 void audioResume();
807#endif
808
809#ifdef DOXYGEN_SHOULD_USE_THIS
831#else
832 String getUserAgent();
833#endif
834
835#ifdef DOXYGEN_SHOULD_USE_THIS
865#else
866 String convertLanguage(const char* language, int format);
867#endif
869#ifndef DOXYGEN_SHOULD_SKIP_THIS
870 SWIG_CONSTANT_FROM_GETTER(int, SERVER_WEBSERVER);
871 SWIG_CONSTANT_FROM_GETTER(int, SERVER_AIRPLAYSERVER);
872 SWIG_CONSTANT_FROM_GETTER(int, SERVER_UPNPSERVER);
873 SWIG_CONSTANT_FROM_GETTER(int, SERVER_UPNPRENDERER);
874 SWIG_CONSTANT_FROM_GETTER(int, SERVER_EVENTSERVER);
875 SWIG_CONSTANT_FROM_GETTER(int, SERVER_JSONRPCSERVER);
876 SWIG_CONSTANT_FROM_GETTER(int, SERVER_ZEROCONF);
877
878 SWIG_CONSTANT_FROM_GETTER(int, PLAYLIST_MUSIC);
879 SWIG_CONSTANT_FROM_GETTER(int, PLAYLIST_VIDEO);
880 SWIG_CONSTANT_FROM_GETTER(int, TRAY_OPEN);
881 SWIG_CONSTANT_FROM_GETTER(int, DRIVE_NOT_READY);
882 SWIG_CONSTANT_FROM_GETTER(int, TRAY_CLOSED_NO_MEDIA);
883 SWIG_CONSTANT_FROM_GETTER(int, TRAY_CLOSED_MEDIA_PRESENT);
884 SWIG_CONSTANT_FROM_GETTER(int, LOGDEBUG);
885 SWIG_CONSTANT_FROM_GETTER(int, LOGINFO);
886 SWIG_CONSTANT_FROM_GETTER(int, LOGWARNING);
887 SWIG_CONSTANT_FROM_GETTER(int, LOGERROR);
888 SWIG_CONSTANT_FROM_GETTER(int, LOGFATAL);
889 SWIG_CONSTANT_FROM_GETTER(int, LOGNONE);
890
891 SWIG_CONSTANT_FROM_GETTER(int, ISO_639_1);
892 SWIG_CONSTANT_FROM_GETTER(int, ISO_639_2);
893 SWIG_CONSTANT_FROM_GETTER(int, ENGLISH_NAME);
894#if 0
895 void registerMonitor(Monitor* monitor);
896 void unregisterMonitor(Monitor* monitor);
897#endif
898 }
899}
900#endif /* DOXYGEN_SHOULD_SKIP_THIS */
getRegion(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getSkinDir()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getCondVisibility(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getIPAddress()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getSupportedMedia(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getDVDState()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getInfoLabel(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
executebuiltin(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getCacheThumbName(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
log(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
shutdown()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getUserAgent()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
audioSuspend()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getCleanMovieTitle(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
enableNavSounds(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
skinHasImage(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getLocalizedString(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
startServer(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getLanguage(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getFreeMem()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
convertLanguage(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
sleep(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
restart()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
executeJSONRPC(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getGlobalIdleTime()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
stopSFX()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
audioResume()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
executescript(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getInfoImage(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
playSFX(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...