×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    179

    Browser monitoring

    Hi,

    Like browser control API, Is there something like Browser Monitor/Observer?Something related to this?

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: Browser monitoring

    the HTTP filter might be something you could have a look into, it might be suitable for your use case.

  3. #3
    Registered User
    Join Date
    May 2008
    Posts
    15

    Re: Browser monitoring

    Ya Http filter works for your case

    http://wiki.forum.nokia.com/index.ph..._filter_plugin

    Note that you should have ALL-TCB for an HTTP filter.

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: Browser monitoring

    Nope, I would try with: ReadDeviceData WriteDeviceData ProtServ NetworkControl NetworkServices SwEvent LocalServices ReadUserData WriteUserData UserEnvironment

    Basically you only need capabilities what are required by the system that loads it. And please, do not try getting manufacturer capabilities unless you are absolutely sure you actually require them, otherwise you'll be just waisting your own time, as well as others.

  5. #5
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    179

    Re: Browser monitoring

    Hello,

    Anybaody knows how to use this HTTP filter?
    I'm not getting the Demofiletr at all.

    Please help

  6. #6
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: Browser monitoring

    Quote Originally Posted by NevePankaj View Post
    I'm not getting the Demofiletr at all.
    What do you mean by that ?

  7. #7
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    179

    Re: Browser monitoring

    I downloaded the demo code for Http filter.Is it a ecom plug in?
    I don't know how to use it.
    And I tried to compile it, I'm getting number of compilation error.
    What to do?

  8. #8
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: Browser monitoring

    Which SDK are you using ?
    And what kind of error are they ?

  9. #9
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    179

    Re: Browser monitoring

    Hi,

    I'm using sdk S60_3rd_MR and IDE Carbide.c++ v1.3
    After compiling Demofilter code, following errors I can see in console

    Code:
    Total Time: 0 sec
    
    ***Invoking abld command
    perl.exe -S ABLD.PL \Symbian\Carbide\workspace\demofilter\group\ library gcce  
      make -r  -f "\Symbian\9.1\S60_3rd_MR_3\EPOC32\BUILD\Symbian\Carbide\workspace\demofilter\group\GCCE.make" LIBRARY VERBOSE=-s
    make -s  -r -f "\Symbian\9.1\S60_3rd_MR_3\EPOC32\BUILD\Symbian\Carbide\workspace\demofilter\group\DEMOFILTER\GCCE\DEMOFILTER.GCCE" LIBRARY
    
    Total Time: 0 sec
    
    ***Invoking abld command
    perl.exe -S ABLD.PL \Symbian\Carbide\workspace\demofilter\group\ resource gcce urel  
      make -r  -f "\Symbian\9.1\S60_3rd_MR_3\EPOC32\BUILD\Symbian\Carbide\workspace\demofilter\group\GCCE.make" RESOURCE CFG=UREL VERBOSE=-s
    C:\Symbian\Carbide\workspace\demofilter\group\../src\demofilter.rss:1: ecom/registryinfo.rh: No such file or directory
    make[1]: *** [C:\Symbian\9.1\S60_3rd_MR_3\epoc32\build\Symbian\Carbide\workspace\demofilter\group\DEMOFILTER\GCCE\demofilter.RSC.d] Error 33
    make[1]: *** Deleting file `C:\Symbian\9.1\S60_3rd_MR_3\epoc32\build\Symbian\Carbide\workspace\demofilter\group\DEMOFILTER\GCCE\demofilter.RSC.d'
    make: *** [RESOURCEDEMOFILTER] Error 2
    make -s  -r -f "\Symbian\9.1\S60_3rd_MR_3\EPOC32\BUILD\Symbian\Carbide\workspace\demofilter\group\DEMOFILTER\GCCE\DEMOFILTER.GCCE" RESOURCEUREL
    
    Total Time: 1 sec
    
    ***Invoking abld command
    perl.exe -S ABLD.PL \Symbian\Carbide\workspace\demofilter\group\ target gcce urel  
      make -r  -f "\Symbian\9.1\S60_3rd_MR_3\EPOC32\BUILD\Symbian\Carbide\workspace\demofilter\group\GCCE.make" TARGET CFG=UREL VERBOSE=-s
    C:\Symbian\Carbide\workspace\demofilter\group\../src\demofilter.rss:1: ecom/registryinfo.rh: No such file or directory
    make[1]: *** [C:\Symbian\9.1\S60_3rd_MR_3\epoc32\build\Symbian\Carbide\workspace\demofilter\group\DEMOFILTER\GCCE\demofilter.RSC.d] Error 33
    make[1]: *** Deleting file `C:\Symbian\9.1\S60_3rd_MR_3\epoc32\build\Symbian\Carbide\workspace\demofilter\group\DEMOFILTER\GCCE\demofilter.RSC.d'
    make[1]: *** Waiting for unfinished jobs....
    ../src\\Demofilter.cpp:1:21: e32base.h: No such file or directory
    ../src\\Demofilter.cpp:2:23: ecom/ecom.h: No such file or directory
    ../src\\Demofilter.cpp:3:38: ecom/implementationproxy.h: No such file or directory
    ../src\\Demofilter.cpp:4:30: http/cecomfilter.h: No such file or directory
    ../src\\Demofilter.cpp:5:30: http/mhttpfilter.h: No such file or directory
    ../src\\Demofilter.cpp:6:35: http/rhttptransaction.h: No such file or directory
    ../src\\Demofilter.cpp:7:22: e32debug.h: No such file or directory
    ../src\\Demofilter.cpp:9: error: expected constructor, destructor, or type conversion before '(' token
    ../src\\Demofilter.cpp:9: error: expected `,' or `;' before '(' token
    ../src\\Demofilter.cpp:11: error: expected class-name before ',' token
    ../src\\Demofilter.cpp:12: error: expected class-name before '{' token
    ../src\\Demofilter.cpp:14: error: ISO C++ forbids declaration of `CEComFilter' with no type
    ../src\\Demofilter.cpp:14: error: expected `;' before '*' token
    ../src\\Demofilter.cpp:17: error: `RHTTPSession' has not been declared
    ../src\\Demofilter.cpp:17: error: `THTTPFilterHandle' has not been declared
    ../src\\Demofilter.cpp:17: error: ISO C++ forbids declaration of `aSession' with no type
    ../src\\Demofilter.cpp:17: error: ISO C++ forbids declaration of `aHandle' with no type
    ../src\\Demofilter.cpp:18: error: `RHTTPSession' has not been declared
    ../src\\Demofilter.cpp:18: error: `THTTPFilterHandle' has not been declared
    ../src\\Demofilter.cpp:18: error: ISO C++ forbids declaration of `aSession' with no type
    ../src\\Demofilter.cpp:18: error: ISO C++ forbids declaration of `aHandle' with no type
    ../src\\Demofilter.cpp:19: error: `RHTTPTransaction' has not been declared
    ../src\\Demofilter.cpp:19: error: expected `,' or `...' before '&' token
    ../src\\Demofilter.cpp:19: error: ISO C++ forbids declaration of `aTransaction' with no type
    ../src\\Demofilter.cpp:19: error: ISO C++ forbids declaration of `THTTPEvent' with no type
    ../src\\Demofilter.cpp:20: error: expected `,' or `...' before '&' token
    ../src\\Demofilter.cpp:20: error: ISO C++ forbids declaration of `THTTPSessionEvent' with no type
    ../src\\Demofilter.cpp:21: error: `TInt' does not name a type
    ../src\\Demofilter.cpp:22: error: `TInt' does not name a type
    ../src\\Demofilter.cpp:26: error: `RHTTPSession' has not been declared
    ../src\\Demofilter.cpp:26: error: ISO C++ forbids declaration of `aHttpSession' with no type
    ../src\\Demofilter.cpp:29: error: `RStringF' does not name a type
    ../src\\Demofilter.cpp:32: error: expected constructor, destructor, or type conversion before '*' token
    ../src\\Demofilter.cpp:32: error: expected `,' or `;' before '*' token
    ../src\\Demofilter.cpp: In destructor `CDemoFilter::~CDemoFilter()':
    ../src\\Demofilter.cpp:45: error: `iFilterName' undeclared (first use this function)
    ../src\\Demofilter.cpp:45: error: (Each undeclared identifier is reported only once for each function it appears in.)
    ../src\\Demofilter.cpp: At global scope:
    ../src\\Demofilter.cpp:48: error: variable or field `ConstructL' declared void
    ../src\\Demofilter.cpp:48: error: `int CDemoFilter::ConstructL' is not a static member of `class CDemoFilter'
    ../src\\Demofilter.cpp:48: error: `RHTTPSession' was not declared in this scope
    ../src\\Demofilter.cpp:48: error: `aSession' was not declared in this scope
    ../src\\Demofilter.cpp:49: error: expected `,' or `;' before '{' token
    ../src\\Demofilter.cpp:56: error: variable or field `MHFUnload' declared void
    ../src\\Demofilter.cpp:56: error: `int CDemoFilter::MHFUnload' is not a static member of `class CDemoFilter'
    ../src\\Demofilter.cpp:56: error: `RHTTPSession' was not declared in this scope
    ../src\\Demofilter.cpp:56: error: `THTTPFilterHandle' was not declared in this scope
    ../src\\Demofilter.cpp:57: error: initializer expression list treated as compound expression
    ../src\\Demofilter.cpp:57: error: expected `,' or `;' before '{' token
    ../src\\Demofilter.cpp:64: error: variable or field `MHFLoad' declared void
    ../src\\Demofilter.cpp:64: error: `int CDemoFilter::MHFLoad' is not a static member of `class CDemoFilter'
    ../src\\Demofilter.cpp:64: error: `RHTTPSession' was not declared in this scope
    ../src\\Demofilter.cpp:64: error: `THTTPFilterHandle' was not declared in this scope
    ../src\\Demofilter.cpp:65: error: initializer expression list treated as compound expression
    ../src\\Demofilter.cpp:65: error: expected `,' or `;' before '{' token
    ../src\\Demofilter.cpp:70: error: variable or field `MHFRunL' declared void
    ../src\\Demofilter.cpp:70: error: `int CDemoFilter::MHFRunL' is not a static member of `class CDemoFilter'
    ../src\\Demofilter.cpp:70: error: `RHTTPTransaction' was not declared in this scope
    make -j 4 -s  -r -f "\Symbian\9.1\S60_3rd_MR_3\EPOC32\BUILD\Symbian\Carbide\workspace\demofilter\group\DEMOFILTER\GCCE\DEMOFILTER.GCCE" UREL
    Demofilter.cpp
    ../src\\Demofilter.cpp:70: error: expected primary-expression before "const"
    ../src\\Demofilter.cpp:71: error: initializer expression list treated as compound expression
    ../src\\Demofilter.cpp:71: error: expected `,' or `;' before '{' token
    ../src\\Demofilter.cpp:80: error: expected `,' or `...' before '&' token
    ../src\\Demofilter.cpp:81: error: ISO C++ forbids declaration of `THTTPSessionEvent' with no type
    ../src\\Demofilter.cpp:85: error: `TInt' does not name a type
    ../src\\Demofilter.cpp:91: error: `TInt' does not name a type
    ../src\\Demofilter.cpp:99: error: `TImplementationProxy' does not name a type
    ../src\\Demofilter.cpp:104: error: expected init-declarator before '*' token
    ../src\\Demofilter.cpp:104: error: expected `,' or `;' before '*' token
    ../src\\Demofilter.cpp:109:2: warning: no newline at end of file
    make[1]: *** [..\..\..\..\9.1\S60_3rd_MR_3\EPOC32\BUILD\Symbian\Carbide\workspace\demofilter\group\DEMOFILTER\GCCE\UREL\demofilter.o] Error 1
    make: *** [TARGETDEMOFILTER] Error 2
    
    Total Time: 1 sec
    
    ***Invoking abld command
    perl.exe -S ABLD.PL \Symbian\Carbide\workspace\demofilter\group\ final gcce urel  
      make -r  -f "\Symbian\9.1\S60_3rd_MR_3\EPOC32\BUILD\Symbian\Carbide\workspace\demofilter\group\GCCE.make" FINAL CFG=UREL VERBOSE=-s
    
    Total Time: 1 sec
    
    ***Invoking abld command
    perl.exe -S ABLD.PL \Symbian\Carbide\workspace\demofilter\group\ test export  
      make -r  -f "\Symbian\9.1\S60_3rd_MR_3\EPOC32\BUILD\Symbian\Carbide\workspace\demofilter\group\EXPORTtest.make" EXPORT VERBOSE=-s
    Nothing to do
    
    Total Time: 2 sec
    
    ***Errors were detected in build. See the Problems or Console view for details.
    
    Total Time: 2 sec
    for the errors like -> http/cecomfilter.h: No such file
    I checked that header files are present, respective LIB are present in project.
    I'm not understanding, what's the problem?

    Please help

  10. #10
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,750

    Re: Browser monitoring

    These errors look like if "SYSTEMINCLUDE \epoc32\include" would be missing from the .mmp file.

  11. #11
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    179

    Re: Browser monitoring

    No. It is not.
    Infact I included two more lines to avoide confusion as bellow.

    SYSTEMINCLUDE /epoc32/include
    SYSTEMINCLUDE /epoc32/include/ecom
    SYSTEMINCLUDE /epoc32/include/http
    and after this in source made changes like

    #include <e32base.h>
    /*#include <ecom/ecom.h>
    #include <ecom/implementationproxy.h>
    #include <http/cecomfilter.h>
    #include <http/mhttpfilter.h>
    #include <http/rhttptransaction.h>
    */
    #include <ecom.h>
    #include <implementationproxy.h>
    #include <cecomfilter.h>
    #include <mhttpfilter.h>
    #include <rhttptransaction.h>
    #include <e32debug.h>
    but still problem remains same.

  12. #12
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    179

    Re: Browser monitoring

    Oh... thanks wizard_hu_,

    Because your reply, I just checked my mmp once again.
    problem is solved. I put the Systeminclude wrong way.
    It should be like
    SYSTEMINCLUDE \epoc32\include

    Thanks

  13. #13
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,750

    Re: Browser monitoring

    I am not sure if the .mmp files really like '/' instead of '\'.

  14. #14
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    179

    Re: Browser monitoring

    One more question.

    in rss file

    RESOURCE REGISTRY_INFO theInfo
    {
    dll_uid = 0xA00033E8;
    interfaces=
    {
    INTERFACE_INFO
    {
    interface_uid = 0x101F446D;
    implementations =
    {
    IMPLEMENTATION_INFO
    {
    implementation_uid = 0xA00033E9;
    version_no = 1;
    display_name = "Demo Filter";
    default_data = "HTTP/+DEMOFILTER";
    opaque_data = "";
    }
    };
    }
    };
    }
    Is it a ecom component? I have no idea how to use it.

    As per my understanding, this will create a dll. And the question is how to use this dll?

    I have to trap each http url going through browser.

  15. #15
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Browser monitoring

    Quote Originally Posted by NevePankaj View Post
    One more question.

    Is it a ecom component? I have no idea how to use it.

    As per my understanding, this will create a dll. And the question is how to use this dll?

    I have to trap each http url going through browser.
    There are two questions there in fact and more can be guessed on the background.

    You have now two approaches to solve the problem:
    - use AHLE
    - use HTTP filter

    Depending on your exact requirements one technology could be better than the other. The fact is however that you need to study them both, understand how they work and the underlying technologies (such as ECOM) and then understand their cost and limitations.

    No amount of questions and answers will ever substitute the part where you read the available documentation for all these things and study some of the published examples.

Similar Threads

  1. KHTML Browser bug?
    By presentTech in forum Symbian
    Replies: 2
    Last Post: 2006-09-07, 21:15
  2. Monitoring Browser
    By acar3 in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2005-02-21, 10:51

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×