KVIrc 5.2.6
Developer APIs
KviMediaManager.cpp File Reference
#include "KviMediaManager.h"
#include "KviConfigurationFile.h"
#include "KviFile.h"
#include "KviFileUtils.h"
#include "KviLocale.h"
#include "KviRegExp.h"
#include "kvi_debug.h"
#include <QDir>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "KviMemory.h"
#include <dirent.h>

Macros

#define S_ISCHR(__f)
 
#define S_ISDIR(__f)
 
#define S_ISFIFO(__f)
 
#define S_ISREG(__f)
 

Variables

static KviDefaultMediaType g_defMediaTypes []
 

Macro Definition Documentation

◆ S_ISCHR

#define S_ISCHR ( __f)
Value:
(__f & _S_IFCHR)

Referenced by KviMediaManager::findMediaType().

◆ S_ISDIR

#define S_ISDIR ( __f)
Value:
(__f & _S_IFDIR)

◆ S_ISFIFO

#define S_ISFIFO ( __f)
Value:
(__f & _S_IFIFO)

Referenced by KviMediaManager::findMediaType().

◆ S_ISREG

#define S_ISREG ( __f)
Value:
(__f & _S_IFREG)

Variable Documentation

◆ g_defMediaTypes

KviDefaultMediaType g_defMediaTypes[]
static
Initial value:
= {
{ "*.jpg", "^\\0330\\0377", "image/jpeg", "JPEG image", "run xdg-open $0" },
{ "*.jpeg", "^\\0330\\0377", "image/jpeg", "JPEG image", "run xdg-open $0" },
{ "*.png", "", "image/png", "PNG image", "run xdg-open $0" },
{ "*.mp3", "", "audio/mpeg", "MPEG audio", "run xdg-open $0" },
{ "*.gif", "", "image/gif", "GIF image", "run xdg-open $0" },
{ "*.mpeg", "", "video/mpeg", "MPEG video", "run xdg-open $0" },
{ "*.zip", "^PK\\0003\\0004", "application/zip", "ZIP archive", "run xdg-open $0" },
{ "*.tar.gz", "", "application/x-gzip", "GZipped tarball", "run xdg-open $0" },
{ "*.tar.bz2", "", "application/x-bzip2", "BZipped tarball", "run xdg-open $0" },
{ "*.tgz", "", "application/x-gzip", "GZipped tarball", "run xdg-open $0" },
{ "*.wav", "", "audio/wav", "Wave audio", "run xdg-open $0" },
{ nullptr, nullptr, nullptr, nullptr, nullptr }
}

Referenced by KviMediaManager::load().