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