Opera 12.15 Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

search_engine_module.h 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*-
  2. **
  3. ** Copyright (C) 1995-2011 Opera Software ASA. All rights reserved.
  4. **
  5. ** This file is part of the Opera web browser.
  6. ** It may not be distributed under any circumstances.
  7. */
  8. #ifndef SEARCH_ENGINE_MODULE_H
  9. #define SEARCH_ENGINE_MODULE_H
  10. #ifdef VISITED_PAGES_SEARCH
  11. #include "modules/hardcore/opera/module.h"
  12. #include "modules/prefs/prefsmanager/opprefslistener.h"
  13. #ifdef VPS_WRAPPER
  14. class AsyncVisitedSearch;
  15. #else
  16. class VisitedSearch;
  17. #endif
  18. class SearchEngineModule : public OperaModule, public OpPrefsListener
  19. {
  20. public:
  21. SearchEngineModule()
  22. {
  23. visited_search = NULL;
  24. empty_visited_search_result = NULL;
  25. }
  26. virtual void InitL(const OperaInitInfo& info);
  27. virtual void Destroy();
  28. virtual void PrefChanged(enum OpPrefsCollection::Collections id, int pref,
  29. int newvalue);
  30. #ifdef VPS_WRAPPER
  31. AsyncVisitedSearch *visited_search;
  32. #else
  33. VisitedSearch *visited_search;
  34. #endif
  35. void* empty_visited_search_result;
  36. protected:
  37. OP_STATUS OpenVisitedSearch();
  38. void CloseVisitedSearch(BOOL force_close);
  39. };
  40. #define g_visited_search g_opera->search_engine_module.visited_search
  41. #define SEARCH_ENGINE_MODULE_REQUIRED
  42. #endif // VISITED_PAGES_SEARCH
  43. #define SEARCH_ENGINE_LOG_BLOCKSTORAGE 1
  44. #define SEARCH_ENGINE_LOG_BTREE 2
  45. #define SEARCH_ENGINE_LOG_ACT 4
  46. #define SEARCH_ENGINE_LOG_STRINGTABLE 8
  47. #define SEARCH_ENGINE_LOG_VISITEDSEARCH 16
  48. //#define SEARCH_ENGINE_LOG SEARCH_ENGINE_LOG_STRINGTABLE
  49. #endif // SEARCH_ENGINE_MODULE_H