Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 256b8b6b19651ff577b85a45c2d0ddbc > files > 168

d4x-debug-2.5.7.1-3mdv2007.1.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