as_crc.h

changeset 7
751d770bb5e3
parent 1
d64aaa7d146f
child 12
ceb4ba3d2d00
equal deleted inserted replaced
0:8e695b8a30e1 1:32cfa5dcde30
1 // 1 //
2 // OSSP asgui - Accounting system graphical user interface 2 // OSSP asgui - Accounting system graphical user interface
3 // Copyright (c) 2002-2004 The OSSP Project (http://www.ossp.org/) 3 // Copyright (c) 2002-2008 The OSSP Project (http://www.ossp.org/)
4 // Copyright (c) 2002-2004 Ralf S. Engelschall <rse@engelschall.com> 4 // Copyright (c) 2002-2008 Ralf S. Engelschall <rse@engelschall.com>
5 // Copyright (c) 2002-2004 Michael Schloh von Bennewitz <michael@schloh.com> 5 // Copyright (c) 2002-2008 Michael Schloh von Bennewitz <michael@schloh.com>
6 // Copyright (c) 2002-2004 Cable & Wireless Telecommunications Services GmbH 6 // Copyright (c) 2002-2008 Cable & Wireless Telecommunications Services GmbH
7 // 7 //
8 // This file is part of OSSP asgui, an accounting system graphical user 8 // This file is part of OSSP asgui, an accounting system graphical user
9 // interface which can be found at http://www.ossp.org/pkg/tool/asgui/. 9 // interface which can be found at http://asgui.europalab.com/.
10 // 10 //
11 // Permission to use, copy, modify, and distribute this software for 11 // Permission to use, copy, modify, and distribute this software for
12 // any purpose with or without fee is hereby granted, provided that 12 // any purpose with or without fee is hereby granted, provided that
13 // the above copyright notice and this permission notice appear in all 13 // the above copyright notice and this permission notice appear in all
14 // copies. 14 // copies.
30 // 30 //
31 31
32 #ifndef CRC_H 32 #ifndef CRC_H
33 #define CRC_H 33 #define CRC_H
34 34
35 #define QT3_SUPPORT
36
35 #include <string> // For copy constructor using string 37 #include <string> // For copy constructor using string
36 #include <qstring.h> // For deriving from QString 38 #include <qstring.h> // For deriving from QString
37 39
38 #include "as_gui.h" // General definitions like U32 typedefs 40 #include "as_gui.h" // General definitions like U32 typedefs
39 41
49 51
50 public: // Constructors 52 public: // Constructors
51 Qualistring(void) : QString() {initCrc();}; // Default 53 Qualistring(void) : QString() {initCrc();}; // Default
52 Qualistring(const QString &kCopy) : QString(kCopy) {initCrc();}; // Copy 54 Qualistring(const QString &kCopy) : QString(kCopy) {initCrc();}; // Copy
53 Qualistring(const char *pkcCopy) : QString(pkcCopy) {initCrc();}; // Copy 55 Qualistring(const char *pkcCopy) : QString(pkcCopy) {initCrc();}; // Copy
54 Qualistring(const std::string &kCopy) : QString(kCopy) {initCrc();}; // Copy 56 Qualistring(const std::string &kCopy) : QString(QString::fromStdString(kCopy)) {initCrc();}; // Copy
55 57
56 U32 getCrc(void); // Generate and return a CRC32 58 U32 getCrc(void); // Generate and return a CRC32
57 Qualistring &operator=(const QString &); // Overload equals operator 59 Qualistring &operator=(const QString &); // Overload equals operator
58 }; 60 };
59 61

mercurial