• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • dcop
 

dcop

  • dcop
dcoptypes.h
1/*
2Copyright (c) 2002 Matthias Ettrich <ettrich@kde.org>
3
4Permission is hereby granted, free of charge, to any person obtaining a copy
5of this software and associated documentation files (the "Software"), to deal
6in the Software without restriction, including without limitation the rights
7to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8copies of the Software, and to permit persons to whom the Software is
9furnished to do so, subject to the following conditions:
10
11The above copyright notice and this permission notice shall be included in
12all copies or substantial portions of the Software.
13
14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20*/
21
22#ifndef DCOPTYPES_H
23#define DCOPTYPES_H
24
25// generic template fallback for unknown types
26template <class T> inline const char* dcopTypeName( const T& ) { return "<unknown>"; }
27
28#include <dcopref.h>
29
30// standard c/c++ types
31inline const char* dcopTypeName( bool ) { return "bool"; }
32inline const char* dcopTypeName( char ) { return "char"; }
33inline const char* dcopTypeName( uchar ) { return "uchar"; }
34inline const char* dcopTypeName( int ) { return "int"; }
35inline const char* dcopTypeName( uint ) { return "uint"; }
36inline const char* dcopTypeName( long ) { return "long int"; }
37inline const char* dcopTypeName( ulong ) { return "ulong"; }
38inline const char* dcopTypeName( double ) { return "double"; }
39inline const char* dcopTypeName( float ) { return "float"; }
40inline const char* dcopTypeName( const char* ) { return "TQCString"; }
41
42// dcop specialities
43class DCOPRef; inline const char* dcopTypeName( const DCOPRef& ) { return "DCOPRef"; }
44
45// Qt variant types
46class TQString; inline const char* dcopTypeName( const TQString& ) { return "TQString"; }
47class TQCString; inline const char* dcopTypeName( const TQCString& ) { return "TQCString"; }
48class TQFont; inline const char* dcopTypeName( const TQFont& ) { return "TQFont"; }
49class TQPixmap; inline const char* dcopTypeName( const TQPixmap& ) { return "TQPixmap"; }
50class TQBrush; inline const char* dcopTypeName( const TQBrush& ) { return "TQBrush"; }
51class TQRect; inline const char* dcopTypeName( const TQRect& ) { return "TQRect"; }
52class TQPoint; inline const char* dcopTypeName( const TQPoint& ) { return "TQPoint"; }
53class TQImage; inline const char* dcopTypeName( const TQImage& ) { return "TQImage"; }
54class TQSize; inline const char* dcopTypeName( const TQSize& ) { return "TQSize"; }
55class TQColor; inline const char* dcopTypeName( const TQColor& ) { return "TQColor"; }
56class TQPalette; inline const char* dcopTypeName( const TQPalette& ) { return "TQPalette"; }
57class TQColorGroup; inline const char* dcopTypeName( const TQColorGroup& ) { return "TQColorGroup"; }
58class TQIconSet; inline const char* dcopTypeName( const TQIconSet& ) { return "TQIconSet"; }
59class TQDataStream; inline const char* dcopTypeName( const TQDataStream& ) { return "TQDataStream"; }
60class TQPointArray; inline const char* dcopTypeName( const TQPointArray& ) { return "TQPointArray"; }
61class TQRegion; inline const char* dcopTypeName( const TQRegion& ) { return "TQRegion"; }
62class TQBitmap; inline const char* dcopTypeName( const TQBitmap& ) { return "TQBitmap"; }
63class TQCursor; inline const char* dcopTypeName( const TQCursor& ) { return "TQCursor"; }
64class TQStringList; inline const char* dcopTypeName( const TQStringList& ) { return "TQStringList"; }
65class TQSizePolicy; inline const char* dcopTypeName( const TQSizePolicy& ) { return "TQSizePolicy"; }
66class TQDate; inline const char* dcopTypeName( const TQDate& ) { return "TQDate"; }
67class TQTime; inline const char* dcopTypeName( const TQTime& ) { return "TQTime"; }
68class TQDateTime; inline const char* dcopTypeName( const TQDateTime& ) { return "TQDateTime"; }
69class TQBitArray; inline const char* dcopTypeName( const TQBitArray& ) { return "TQBitArray"; }
70class TQKeySequence; inline const char* dcopTypeName( const TQKeySequence& ) { return "TQKeySequence"; }
71class TQVariant; inline const char* dcopTypeName( const TQVariant& ) { return "TQVariant"; }
72
73template<class Key, class T> class TQMap;
74typedef TQMap<TQString, TQVariant> TQStringVariantMap;
75inline const char* dcopTypeName(const TQStringVariantMap&) { return "TQStringVariantMap"; }
76
77// And some KDE types
78class KURL; inline const char* dcopTypeName( const KURL& ) { return "KURL"; }
79
80// type initialization for standard c/c++ types
81inline void dcopTypeInit(bool& b){b=false;}
82inline void dcopTypeInit(char& c){c=0;}
83inline void dcopTypeInit(uchar& c){c=0;}
84inline void dcopTypeInit(int& i){i=0;}
85inline void dcopTypeInit(uint& i){i=0;}
86inline void dcopTypeInit(long& l){l=0;}
87inline void dcopTypeInit(ulong& l){l=0;}
88inline void dcopTypeInit(float& f){f=0;}
89inline void dcopTypeInit(double& d){d=0;}
90inline void dcopTypeInit(const char* s ){s=0;}
91
92// generic template fallback for self-initializing classes
93template <class T> inline void dcopTypeInit(T&){}
94
95#endif
DCOPRef
A DCOPRef(erence) encapsulates a remote DCOP object as a triple <app,obj,type> where type is optional...
Definition: dcopref.h:279
KURL

dcop

Skip menu "dcop"
  • Main Page
  • Modules
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

dcop

Skip menu "dcop"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for dcop by doxygen 1.9.4
This website is maintained by Timothy Pearson.