KVIrc
5.2.6
Developer APIs
src
kvilib
ext
KviMediaType.h
Go to the documentation of this file.
1
#ifndef _KVI_MEDIATYPE_H_
2
#define _KVI_MEDIATYPE_H_
3
//=============================================================================
4
//
5
// File : KviMediaType.h
6
// Creation date : Mon Aug 21 2000 17:19:56 CEST by Szymon Stefanek
7
//
8
// This file is part of the KVIrc IRC client distribution
9
// Copyright (C) 2000-2010 Szymon Stefanek (pragma at kvirc dot net)
10
//
11
// This program is FREE software. You can redistribute it and/or
12
// modify it under the terms of the GNU General Public License
13
// as published by the Free Software Foundation; either version 2
14
// of the License, or (at your option) any later version.
15
//
16
// This program is distributed in the HOPE that it will be USEFUL,
17
// but WITHOUT ANY WARRANTY; without even the implied warranty of
18
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19
// See the GNU General Public License for more details.
20
//
21
// You should have received a copy of the GNU General Public License
22
// along with this program. If not, write to the Free Software Foundation,
23
// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24
//
25
//=============================================================================
26
27
#include "
kvi_settings.h
"
28
#include "
KviHeapObject.h
"
29
#include "
KviCString.h
"
30
31
//
32
// IANA media-types matching subsystem
33
//
34
// WARNING: This class is used in multiple threads
35
// Thus every usage of the classes and structures defined
36
// in this file MUST be protected by calls
37
// to KviMediaManager::lock() and KviMediaManager::unlock()
38
//
39
40
struct
KviDefaultMediaType
41
{
42
const
char
*
filemask
;
43
const
char
*
magicbytes
;
44
const
char
*
ianatype
;
45
const
char
*
description
;
46
const
char
*
commandline
;
47
};
48
49
class
KVILIB_API
KviMediaType
:
public
KviHeapObject
50
{
51
public
:
52
KviMediaType
(){};
53
~KviMediaType
(){};
54
55
public
:
56
KviCString
szFileMask
;
57
KviCString
szMagicBytes
;
58
KviCString
szIanaType
;
59
KviCString
szDescription
;
60
KviCString
szSavePath
;
61
KviCString
szCommandline
;
62
KviCString
szRemoteExecCommandline
;
63
KviCString
szIcon
;
64
};
65
66
#endif
//_KVI_MEDIATYPE_H_
KviCString.h
KviHeapObject.h
Heap Object.
KviCString
Definition
KviCString.h:102
KviHeapObject
Definition
KviHeapObject.h:119
KviMediaType
Definition
KviMediaType.h:50
KviMediaType::KviMediaType
KviMediaType()
Definition
KviMediaType.h:52
KviMediaType::szMagicBytes
KviCString szMagicBytes
Definition
KviMediaType.h:57
KviMediaType::szCommandline
KviCString szCommandline
Definition
KviMediaType.h:61
KviMediaType::szFileMask
KviCString szFileMask
Definition
KviMediaType.h:56
KviMediaType::szSavePath
KviCString szSavePath
Definition
KviMediaType.h:60
KviMediaType::~KviMediaType
~KviMediaType()
Definition
KviMediaType.h:53
KviMediaType::szIcon
KviCString szIcon
Definition
KviMediaType.h:63
KviMediaType::szIanaType
KviCString szIanaType
Definition
KviMediaType.h:58
KviMediaType::szRemoteExecCommandline
KviCString szRemoteExecCommandline
Definition
KviMediaType.h:62
KviMediaType::szDescription
KviCString szDescription
Definition
KviMediaType.h:59
kvi_settings.h
This file contains compile time settings.
KVILIB_API
#define KVILIB_API
Definition
kvi_settings.h:124
KviDefaultMediaType
Definition
KviMediaType.h:41
KviDefaultMediaType::ianatype
const char * ianatype
Definition
KviMediaType.h:44
KviDefaultMediaType::description
const char * description
Definition
KviMediaType.h:45
KviDefaultMediaType::filemask
const char * filemask
Definition
KviMediaType.h:42
KviDefaultMediaType::magicbytes
const char * magicbytes
Definition
KviMediaType.h:43
KviDefaultMediaType::commandline
const char * commandline
Definition
KviMediaType.h:46
Generated on Mon Nov 18 2024 15:22:28 for KVIrc by
1.12.0