This file is indexed.

/usr/lib/Wt/examples/hangman/HangmanWidget.h is in witty-examples 3.3.0-1build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// This may look like C code, but it's really -*- C++ -*-
/* 
 * Copyright (C) 2011 Emweb bvba, Heverlee, Belgium
 *
 * See the LICENSE file for terms of use.
 */

#ifndef HANGMAN_WIDGET_H_
#define HANGMAN_WIDGET_H_

#include <vector>

#include <Wt/WContainerWidget>

#include "Dictionary.h"

class Session;
class WordWidget;
class ImagesWidget;
class LettersWidget;

class HangmanWidget: public Wt::WContainerWidget
{
public:
  HangmanWidget(const std::string &name, Wt::WContainerWidget *parent = 0);

  Wt::Signal<int>& scoreUpdated() { return scoreUpdated_; }
  
private:
  Wt::WText                     *title_;

  WordWidget                    *word_;
  ImagesWidget                  *images_;
  LettersWidget                 *letters_;

  Wt::WText                     *statusText_;
  Wt::WComboBox                 *language_;
  Wt::WPushButton               *newGameButton_;
  
  Wt::Signal<int>                scoreUpdated_;

  std::string                    name_;
  Dictionary                     dictionary_;

  int                            badGuesses_;
  
  void registerGuess(char c);

  void newGame();
};

#endif //HANGMAN_WIDGET_H_