michael@0: /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsMozIconURI_h__ michael@0: #define nsMozIconURI_h__ michael@0: michael@0: #include "nsIIconURI.h" michael@0: #include "nsCOMPtr.h" michael@0: #include "nsString.h" michael@0: michael@0: #define NS_MOZICONURI_CID \ michael@0: { \ michael@0: 0x43a88e0e, \ michael@0: 0x2d37, \ michael@0: 0x11d5, \ michael@0: { 0x99, 0x7, 0x0, 0x10, 0x83, 0x1, 0xe, 0x9b } \ michael@0: } michael@0: michael@0: class nsMozIconURI : public nsIMozIconURI michael@0: { michael@0: public: michael@0: NS_DECL_THREADSAFE_ISUPPORTS michael@0: NS_DECL_NSIURI michael@0: NS_DECL_NSIMOZICONURI michael@0: michael@0: // nsMozIconURI michael@0: nsMozIconURI(); michael@0: virtual ~nsMozIconURI(); michael@0: michael@0: protected: michael@0: nsCOMPtr mIconURL; // a URL that we want the icon for michael@0: uint32_t mSize; // the # of pixels in a row that we want for this image. Typically 16, 32, 128, etc. michael@0: nsCString mContentType; // optional field explicitly specifying the content type michael@0: nsCString mFileName; // for if we don't have an actual file path, we're just given a filename with an extension michael@0: nsCString mStockIcon; michael@0: int32_t mIconSize; // -1 if not specified, otherwise index into kSizeStrings michael@0: int32_t mIconState; // -1 if not specified, otherwise index into kStateStrings michael@0: }; michael@0: michael@0: #endif // nsMozIconURI_h__