Kodi Development 23.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#include "language/LanguageTag.h"
14#include "swighelper.h"
15
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
340#else
341 String getLanguage(int format = KODI::LANGUAGE::CLanguageTag::ENGLISH_NAME,
342 bool region = false);
343#endif
344
345#ifdef DOXYGEN_SHOULD_USE_THIS
364#else
365 String getIPAddress();
366#endif
367
368#ifdef DOXYGEN_SHOULD_USE_THIS
394#else
395 long getDVDState();
396#endif
397
398#ifdef DOXYGEN_SHOULD_USE_THIS
417#else
418 long getFreeMem();
419#endif
420
421#ifdef DOXYGEN_SHOULD_USE_THIS
444#else
445 String getInfoLabel(const char* cLine);
446#endif
447
448#ifdef DOXYGEN_SHOULD_USE_THIS
473#else
474 String getInfoImage(const char * infotag);
475#endif
476
477#ifdef DOXYGEN_SHOULD_USE_THIS
499#else
500 String getDatabaseName(const char* dbType);
501#endif
502
503#ifdef DOXYGEN_SHOULD_USE_THIS
528#else
529 void playSFX(const char* filename, bool useCached = true);
530#endif
531
532#ifdef DOXYGEN_SHOULD_USE_THIS
550#else
551 void stopSFX();
552#endif
553
554#ifdef DOXYGEN_SHOULD_USE_THIS
574#else
575 void enableNavSounds(bool yesNo);
576#endif
577
578#ifdef DOXYGEN_SHOULD_USE_THIS
603#else
604 bool getCondVisibility(const char *condition);
605#endif
606
607#ifdef DOXYGEN_SHOULD_USE_THIS
626#else
627 int getGlobalIdleTime();
628#endif
629
630#ifdef DOXYGEN_SHOULD_USE_THIS
673#else
674 int getDevicePowerStatus(const String& adapterName = emptyString);
675#endif
676
677#ifdef DOXYGEN_SHOULD_USE_THIS
699#else
700 std::vector<String> getCecAdapterNames();
701#endif
702
703#ifdef DOXYGEN_SHOULD_USE_THIS
723#else
724 String getCacheThumbName(const String& path);
725#endif
726
727#ifdef DOXYGEN_SHOULD_USE_THIS
750#else
751 Tuple<String,String> getCleanMovieTitle(const String& path, bool usefoldername = false);
752#endif
753
754#ifdef DOXYGEN_SHOULD_USE_THIS
779#else
780 String getRegion(const char* id);
781#endif
782
783#ifdef DOXYGEN_SHOULD_USE_THIS
810#else
811 String getSupportedMedia(const char* mediaType);
812#endif
813
814#ifdef DOXYGEN_SHOULD_USE_THIS
838#else
839 bool skinHasImage(const char* image);
840#endif
841
842#ifdef DOXYGEN_SHOULD_USE_THIS
874#else
875 bool startServer(int iTyp, bool bStart);
876#endif
877
878#ifdef DOXYGEN_SHOULD_USE_THIS
895#else
896 void audioSuspend();
897#endif
898
899#ifdef DOXYGEN_SHOULD_USE_THIS
916#else
917 void audioResume();
918#endif
919
920#ifdef DOXYGEN_SHOULD_USE_THIS
942#else
943 String getUserAgent();
944#endif
945
946#ifdef DOXYGEN_SHOULD_USE_THIS
985#else
986 String convertLanguage(const char* language, int format);
987#endif
989#ifndef DOXYGEN_SHOULD_SKIP_THIS
990 SWIG_CONSTANT_FROM_GETTER(int, SERVER_WEBSERVER);
991 SWIG_CONSTANT_FROM_GETTER(int, SERVER_AIRPLAYSERVER);
992 SWIG_CONSTANT_FROM_GETTER(int, SERVER_UPNPSERVER);
993 SWIG_CONSTANT_FROM_GETTER(int, SERVER_UPNPRENDERER);
994 SWIG_CONSTANT_FROM_GETTER(int, SERVER_EVENTSERVER);
995 SWIG_CONSTANT_FROM_GETTER(int, SERVER_JSONRPCSERVER);
996 SWIG_CONSTANT_FROM_GETTER(int, SERVER_ZEROCONF);
997
998 SWIG_CONSTANT_FROM_GETTER(int, PLAYLIST_MUSIC);
999 SWIG_CONSTANT_FROM_GETTER(int, PLAYLIST_VIDEO);
1000 SWIG_CONSTANT_FROM_GETTER(int, TRAY_OPEN);
1001 SWIG_CONSTANT_FROM_GETTER(int, DRIVE_NOT_READY);
1002 SWIG_CONSTANT_FROM_GETTER(int, TRAY_CLOSED_NO_MEDIA);
1003 SWIG_CONSTANT_FROM_GETTER(int, TRAY_CLOSED_MEDIA_PRESENT);
1004 SWIG_CONSTANT_FROM_GETTER(int, LOGDEBUG);
1005 SWIG_CONSTANT_FROM_GETTER(int, LOGINFO);
1006 SWIG_CONSTANT_FROM_GETTER(int, LOGWARNING);
1007 SWIG_CONSTANT_FROM_GETTER(int, LOGERROR);
1008 SWIG_CONSTANT_FROM_GETTER(int, LOGFATAL);
1009 SWIG_CONSTANT_FROM_GETTER(int, LOGNONE);
1010
1011 SWIG_CONSTANT_FROM_GETTER(int, ISO_639_1);
1012 SWIG_CONSTANT_FROM_GETTER(int, ISO_639_2);
1013 SWIG_CONSTANT_FROM_GETTER(int, ENGLISH_NAME);
1014 SWIG_CONSTANT_FROM_GETTER(int, ISO_NAME);
1015
1016 SWIG_CONSTANT_FROM_GETTER(int, DEVICE_POWER_NO_ADAPTER);
1017 SWIG_CONSTANT_FROM_GETTER(int, DEVICE_POWER_ON);
1018 SWIG_CONSTANT_FROM_GETTER(int, DEVICE_POWER_STANDBY);
1019 SWIG_CONSTANT_FROM_GETTER(int, DEVICE_POWER_TRANSITION_TO_ON);
1020 SWIG_CONSTANT_FROM_GETTER(int, DEVICE_POWER_TRANSITION_TO_STANDBY);
1021 SWIG_CONSTANT_FROM_GETTER(int, DEVICE_POWER_UNKNOWN);
1022#if 0
1023 void registerMonitor(Monitor* monitor);
1024 void unregisterMonitor(Monitor* monitor);
1025#endif
1026 }
1027}
1028#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...
getDatabaseName(...)
<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...
getCecAdapterNames()
<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...
getDevicePowerStatus(...)
<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...