gecko-dev/webshell/embed/gtk/lib/GtkMozillaInputStream.h
alla%lysator.liu.se 4fde692cf2 First shot at streaming html or xml data to the widget.
Try it out.
I've not updated to the tip yet, so i hope it works.
1999-06-07 23:00:10 +00:00

50 lines
1.4 KiB
C++

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "MPL"); you may not use this file except in
* compliance with the MPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of the Original Code is Alexander. Portions
* created by Alexander Larsson are Copyright (C) 1999
* Alexander Larsson. All Rights Reserved.
*/
#ifndef GTKMOZILLAINPUTSTREAM_H
#define GTKMOZILLAINPUTSTREAM_H
#include "nsIInputStream.h"
class GtkMozillaInputStream : public nsIInputStream {
public:
GtkMozillaInputStream(void);
~GtkMozillaInputStream(void);
// nsISupports interface
NS_DECL_ISUPPORTS
// nsIInputStream interface
NS_IMETHOD GetLength(PRUint32 *aLength);
NS_IMETHOD Read(char* aBuf, PRUint32 aCount, PRUint32 *aReadCount);
// nsIBaseStream interface
NS_IMETHOD Close(void);
// Specific interface
NS_IMETHOD Fill(const char *buffer, PRUint32 aCount);
NS_IMETHOD FillResult(PRUint32 *aReadCount);
protected:
PRUint32 mReadCount;
PRUint32 mCount;
const char *mBuffer;
};
#endif /* GTKMOZILLAINPUTSTREAM_H */