Sophie

Sophie

distrib > Mandriva > cooker > i586 > by-pkgid > 0a6e7da7c1280f0f9d531d0d9573351f > files > 178

d4x-debug-2.5.7.1-7mdv2011.0.i586.rpm

/*	WebDownloader for X-Window
 *	Copyright (C) 1999-2002 Koshelev Maxim
 *	This Program is free but not GPL!!! You can't modify it
 *	without agreement with author. You can't distribute modified
 *	program but you can distribute unmodified program.
 *
 *	This program is distributed in the hope that it will be useful,
 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 */
#ifndef T_LIST_STRING
#define T_LIST_STRING
#include "queue.h"

struct tString:public tNode{
    char *body;
    int temp;
    tString();
    tString(const char *what,int len);
    void print();
    int size();
    ~tString();
};

//*************************************************/

class tStringList:public tQueue{
    protected:
    int Size;
    public:
    	tStringList();
    	virtual void print();
    	virtual void add(const char *str,int len);
    	virtual void add(const char *str);
    	void dispose();
    	void done();
    	int size();
    	tString *last();
    	tString *first();
    	tString *next();
    	tString *prev();
    	int add_strings(char *what,int len);
    	~tStringList();
};

class tMemory:public tStringList{
	public:
		virtual tString *add();
		void del(tString *a);
};
#endif