00001 /******************************************************************************** 00002 * * 00003 * Q t B y t e A r r a y t h u n k * 00004 * * 00005 ********************************************************************************* 00006 * Copyright (C) 2003 by Niall Douglas. All Rights Reserved. * 00007 * NOTE THAT I DO NOT PERMIT ANY OF MY CODE TO BE PROMOTED TO THE GPL * 00008 ********************************************************************************* 00009 * This code is free software; you can redistribute it and/or modify it under * 00010 * the terms of the GNU Library General Public License v2.1 as published by the * 00011 * Free Software Foundation EXCEPT that clause 3 does not apply ie; you may not * 00012 * "upgrade" this code to the GPL without my prior written permission. * 00013 * Please consult the file "License_Addendum2.txt" accompanying this file. * 00014 * * 00015 * This code is distributed in the hope that it will be useful, * 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * 00018 ********************************************************************************* 00019 * $Id: * 00020 ********************************************************************************/ 00021 00022 #ifndef QCSTRING_H 00023 #define QCSTRING_H 00024 00025 #include <qmemarray.h> 00026 00027 namespace FX { 00028 00044 class QByteArray : public QMemArray<unsigned char> 00045 { 00046 public: 00048 QByteArray() : QMemArray<unsigned char>() { } 00050 QByteArray(FXuval size) : QMemArray<unsigned char>(size) { } 00052 QByteArray(unsigned char *a, FXuval n, bool noDeleteExtArray=true) : QMemArray<unsigned char>(a, n, noDeleteExtArray) { } 00053 FXADDMOVEBASECLASS(QByteArray, QMemArray<unsigned char>) 00054 }; 00055 00056 } // namespace 00057 00058 #endif