// $Revision: 1.6 $ #ifndef TaligentSamples_URL #define TaligentSamples_URL //----------------------------------------------------------------------------- // // Copyright (C) 1995 Taligent, Inc. All rights reserved. // // Project: WebRunner Sample // File: URL.h // Build/Version: 1.0.0 // //----------------------------------------------------------------------------- #ifndef Taligent_FOREIGNDATA #include #endif #ifndef Taligent_STANDARDTEXT #include #endif #ifndef Taligent_SCRAPITEM #include #endif //============================================================================= // TURL class TURL { public: VersionDeclarationsMacro(TURL); public: static const TURL gTaligentHomePage; TURL(); TURL(const TStandardText& urlText); TURL(const TURL& source); virtual ~TURL(); TURL& operator=(const TURL& source); virtual TStream& operator>>=(TStream& toStream) const; virtual TStream& operator<<=(TStream& fromStream); virtual bool operator==(const TURL& other) const; virtual bool operator!=(const TURL& other) const; TStandardText GetURLText() const; TScrapItem* Follow(const TCollectionOf& acceptableScrapTypes) const; protected: virtual TScrapItem* TranslateNonTextStream(TChunkyStream* adoptStream, const TMIMEForeignDataType& mimeType, const TCollectionOf& acceptableScrapTypes) const; private: enum {kOriginalVersion}; TStandardText fURLText; }; #endif