KVIrc  4.9.2
DeveloperAPIs
Macros | Variables
KviMediaManager.cpp File Reference
#include "KviMediaManager.h"
#include "kvi_debug.h"
#include "KviConfigurationFile.h"
#include "KviFileUtils.h"
#include "KviLocale.h"
#include "KviFile.h"
#include "kvi_settings.h"
#include <QRegExp>
#include <QDir>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "KviMemory.h"
#include <dirent.h>

Macros

#define S_ISCHR(__f)   (__f & _S_IFCHR)
 
#define S_ISDIR(__f)   (__f & _S_IFDIR)
 
#define S_ISFIFO(__f)   (__f & _S_IFIFO)
 
#define S_ISREG(__f)   (__f & _S_IFREG)
 

Variables

static KviDefaultMediaType g_defMediaTypes []
 

Macro Definition Documentation

#define S_ISCHR (   __f)    (__f & _S_IFCHR)
#define S_ISDIR (   __f)    (__f & _S_IFDIR)
#define S_ISFIFO (   __f)    (__f & _S_IFIFO)
#define S_ISREG (   __f)    (__f & _S_IFREG)

Variable Documentation

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