KVIrc  4.9.2
DeveloperAPIs
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;
49 
51 {
52 public:
55 
56 public:
57  KviCString szFileMask;
65 };
66 
67 #endif //_KVI_MEDIATYPE_H_
Definition: KviMediaType.h:41
KviCString szIanaType
Definition: KviMediaType.h:59
Definition: KviHeapObject.h:124
Definition: KviCString.h:105
KviCString szIcon
Definition: KviMediaType.h:64
const char * magicbytes
Definition: KviMediaType.h:44
const char * filemask
Definition: KviMediaType.h:43
const char * commandline
Definition: KviMediaType.h:47
KviCString szCommandline
Definition: KviMediaType.h:62
struct _KviDefaultMediaType KviDefaultMediaType
Definition: KviMediaType.h:50
KviCString szRemoteExecCommandline
Definition: KviMediaType.h:63
const char * description
Definition: KviMediaType.h:46
Heap Object.
const char * ianatype
Definition: KviMediaType.h:45
KviCString szDescription
Definition: KviMediaType.h:60
~KviMediaType()
Definition: KviMediaType.h:54
This file contains compile time settings.
KviCString szSavePath
Definition: KviMediaType.h:61
KviMediaType()
Definition: KviMediaType.h:53
#define KVILIB_API
Definition: kvi_settings.h:125
KviCString szMagicBytes
Definition: KviMediaType.h:58