~ubuntu-branches/ubuntu/trusty/codeblocks/trusty-proposed

« back to all changes in this revision

Viewing changes to src/plugins/codecompletion/systemheadersthread.h

  • Committer: Package Import Robot
  • Author(s): Vincent Cheng
  • Date: 2013-05-06 00:20:02 UTC
  • mfrom: (6.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20130506002002-ngc7bwkewnak8fja
Tags: 12.11-3
* Upload to unstable.
* Update watch file, thanks to Bart Martens.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3
 
3
 * http://www.gnu.org/licenses/gpl-3.0.html
 
4
 */
 
5
 
 
6
#ifndef SYSTEMHEADERSTHREAD_H
 
7
#define SYSTEMHEADERSTHREAD_H
 
8
 
 
9
#include <wx/arrstr.h>
 
10
#include <wx/string.h>
 
11
#include <wx/thread.h>
 
12
 
 
13
#include <map>
 
14
 
 
15
#include "parser/parser.h" // StringSet
 
16
 
 
17
class wxEvtHandler;
 
18
 
 
19
typedef std::map<wxString, StringSet> SystemHeadersMap;
 
20
 
 
21
namespace SystemHeadersThreadHelper
 
22
{
 
23
    static long idSystemHeadersThreadCompleted = wxNewId();
 
24
    static long idSystemHeadersThreadUpdate    = wxNewId();
 
25
    static long idSystemHeadersThreadError     = wxNewId();
 
26
}
 
27
 
 
28
class SystemHeadersThread : public wxThread
 
29
{
 
30
public:
 
31
    SystemHeadersThread(wxEvtHandler*     parent,     wxCriticalSection*   critSect,
 
32
                        SystemHeadersMap& headersMap, const wxArrayString& incDirs);
 
33
    virtual ~SystemHeadersThread();
 
34
 
 
35
    virtual void* Entry();
 
36
 
 
37
private:
 
38
    wxEvtHandler*      m_Parent;
 
39
    wxCriticalSection* m_SystemHeadersThreadCS;
 
40
    SystemHeadersMap&  m_SystemHeadersMap;
 
41
    wxArrayString      m_IncludeDirs;
 
42
};
 
43
 
 
44
#endif // SYSTEMHEADERSTHREAD_H