Coverage Report

Created: 2026-11-12 06:39

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/wt/src/Wt/WUrlFavicon.h
Line
Count
Source
1
// This may look like C code, but it's really -*- C++ -*-
2
/*
3
 * Copyright (C) 2026 Emweb bv, Herent, Belgium.
4
 *
5
 * See the LICENSE file for terms of use.
6
 */
7
#ifndef WURL_FAVICON_H_
8
#define WURL_FAVICON_H_
9
10
#include "Wt/WFavicon.h"
11
12
namespace Wt {
13
14
/*! \class WUrlFavicon Wt/WUrlFavicon.h Wt/WUrlFavicon.h
15
 *  \brief A WFavicon located at a given URL.
16
 *
17
 * \sa WApplication::setFavicon()
18
 */
19
class WT_API WUrlFavicon : public WFavicon
20
{
21
public:
22
  /*! \brief Constructs a WUrlFavicon.
23
   *
24
   * Constructs a WUrlFavicon from the given \p url.
25
   */
26
  WUrlFavicon(const std::string& url);
27
28
  //! \brief Sets the URL.
29
  void setUrl(const std::string& url);
30
31
0
  std::string url() const override { return url_; };
32
33
private:
34
  std::string url_;
35
};
36
37
}
38
#endif //WURL_FAVICON_H_