brctllinkresolver.h

Go to the documentation of this file.
00001 /*
00002 * ==============================================================================
00003 *  Name        : BrCtlLinkResolver.h
00004 *  Part of     : WebKit \ BrowserControl
00005 *  Interface   : Browser Control API
00006 *  Description : Handle links and embedded content that are not fetched from the network
00007 *  Version     : %Version%
00008 *
00009 *    Copyright (c) 2006, Nokia Corporation
00010 *    All rights reserved.
00011 *  
00012 *   Redistribution and use in source and binary forms, with or without
00013 *   modification, are permitted provided that the following conditions
00014 *   are met:
00015 *  
00016 *      * Redistributions of source code must retain the above copyright
00017 *        notice, this list of conditions and the following disclaimer.
00018 *      * Redistributions in binary form must reproduce the above copyright
00019 *        notice, this list of conditions and the following disclaimer in
00020 *        the documentation and/or other materials provided with the
00021 *        distribution.
00022 *      * Neither the name of the Nokia Corporation nor the names of its
00023 *        contributors may be used to endorse or promote products derived
00024 *        from this software without specific prior written permission.
00025 *  
00026 *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00027 *   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00028 *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
00029 *   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
00030 *   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00031 *   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
00032 *   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
00033 *   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
00034 *   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00035 *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
00036 *   USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
00037 *   DAMAGE.
00038 *  
00039 *    Please see file patentlicense.txt for further grants.
00040 * ==============================================================================
00041 */
00042 
00043 
00044 #ifndef BRCTLLINKRESOLVER_H
00045 #define BRCTLLINKRESOLVER_H
00046 
00047 //  INCLUDES
00048 #include <e32std.h>
00049 #include <e32base.h>
00050 
00051 
00056 enum TBrCtlLoadContentType
00057     {
00058     ELoadContentTypeAny, 
00059 
00063     ELoadContentTypeMarkup,
00064     ELoadContentTypeImage, 
00065     ELoadContentTypeCss, 
00066     ELoadContentTypeJavascript, 
00067     ELoadContentTypePlugin, 
00068 
00073     ELoadContentTypeSound
00074     };
00075 
00076 
00077 // FORWARD DECLARATIONS
00078 class MBrCtlLinkContent;
00079 
00098 class MBrCtlLinkResolver
00099     {
00100     public: // New functions
00101         
00118         virtual TBool ResolveEmbeddedLinkL(const TDesC& aEmbeddedUrl,
00119                                        const TDesC& aCurrentUrl,
00120                                          TBrCtlLoadContentType aLoadContentType, 
00121                                          MBrCtlLinkContent& aEmbeddedLinkContent) = 0; 
00122     
00134         virtual TBool ResolveLinkL(const TDesC& aUrl, const TDesC& aCurrentUrl,
00135                                    MBrCtlLinkContent& aBrCtlLinkContent) = 0;
00136 
00142         virtual void CancelAll() = 0;
00143     };
00144 
00145 
00160 class MBrCtlLinkContent
00161     {
00162     public: // New functions
00170         virtual void HandleResolveComplete(const TDesC& aContentType,
00171                                            const TDesC& aCharset,
00172                                            const HBufC8* aContentBuf) = 0;
00173 
00179         virtual void HandleResolveError(TInt aError) = 0;
00180     };
00181 
00182 
00183 
00184 // BRCTLLINKRESOLVER_H
00185 #endif
00186             
00187 // End of File

Copyright © Nokia Corporation 2001-2008
Back to top