~ubuntu-branches/ubuntu/quantal/ksniffer/quantal

« back to all changes in this revision

Viewing changes to ksniffer/sniffer.h

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2008-03-28 16:08:20 UTC
  • mfrom: (1.1.5 upstream) (11.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080328160820-js0e2fuodvt9yme9
Tags: 0.3.2-1ubuntu1
* Sync with debian.
* Added kubuntu_01_kdesudo.diff. Ksniffer now works when started
  inside a kprocess, and therefore works with kdesudo

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/***************************************************************************
2
 
 *   Copyright (C) 2004-2007 by Giovanni Venturi                           *
 
2
 *   Copyright (C) 2004-2008 by Giovanni Venturi                           *
3
3
 *   giovanni@ksniffer.org                                                 *
4
4
 *                                                                         *
5
5
 *   This program is free software; you can redistribute it and/or modify  *
73
73
  void stopSniffing();
74
74
 
75
75
  /**
 
76
   * ksniff has stopped, now has to be loaded the last packets
 
77
   * from the file before to quit the QThread
 
78
   */
 
79
  void waitingToStop(bool value = true);
 
80
 
 
81
  /**
76
82
   * Error constant for \ref getPacketFromFile().
77
83
   */
78
84
  enum {FILE_NOT_FOUND = -20, BAD_FORMAT_FILE = -10, NO_RESULT_AVAILABLE = 0, NO_FILE_SELECTED = 10, CORRECT_FORMAT_FILE = 20};
134
140
 
135
141
private:
136
142
  bool m_canSniff;           // true/false ---> start/stop sniffing thread
 
143
  bool m_waitingToStop;      // this say if the ksniff process has been closed
137
144
  QString m_strInterface;    // string to set the sniffing interface
138
145
  QString m_strTmpFilePath;  // string for temporary path file
139
146