root/capture-mod/trunk/ApplicationPlugin.h

Revision 823, 1.9 kB (checked in by xkovah, 1 year ago)

adding the files finally

Line 
1 /*
2  *  PROJECT: Capture
3  *  FILE: ApplicationPlugin.h
4  *  AUTHORS: Ramon Steenson (rsteenson@gmail.com) & Christian Seifert (christian.seifert@gmail.com)
5  *
6  *  Developed by Victoria University of Wellington and the New Zealand Honeynet Alliance
7  *
8  *  This file is part of Capture.
9  *
10  *  Capture is free software; you can redistribute it and/or modify
11  *  it under the terms of the GNU General Public License as published by
12  *  the Free Software Foundation; either version 2 of the License, or
13  *  (at your option) any later version.
14  *
15  *  Capture is distributed in the hope that it will be useful,
16  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  *  GNU General Public License for more details.
19  *
20  *  You should have received a copy of the GNU General Public License
21  *  along with Capture; if not, write to the Free Software
22  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
23  */
24 #pragma once
25 #include <windows.h>
26 #include <string>
27 #include <list>
28 #include "Url.h"
29 #include "ErrorCodes.h"
30
31 using namespace std;
32
33 class ApplicationPlugin
34 {
35 public:
36     /* Visits a particular url. After visitation, this function needs to
37        return one of the status codes defined in ErrorCodes.h. Optionally
38        a minor error code can be placed into the minorError parameter. */
39     virtual DWORD visitUrl(Url* url, DWORD* minorError) = 0;
40     /* Returns a pointer to an array that is allocated in the plugin
41        and contains the list of supported application names */
42     virtual wchar_t** getSupportedApplicationNames() = 0;
43     /* Returns the priority of the plugin 0 .. 2^32. 0 being the lowest.
44        The priority is used so Capture can determine what plugin to use
45        if there are two which support the same application name */
46     virtual unsigned int getPriority() = 0;
47
48 };
Note: See TracBrowser for help on using the browser.