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

dcop

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