lyx_mirror/src/support/userinfo.h
Jean-Marc Lasgouttes 7bb08f10b1 Move initial values of LyXRC members to the header
We use a C++11 construct that puts initial values of members along
with their definition. It is a good construct and now the out of line
constructor and the setDefaults() method can go.

This removes the need to define a dummy constructor in tex2lyx and
client.

The only needed change to the rest of code is a change of signature
for the user_(name|email) to return std::string. They are now called
explicitely from the constructor. We now have to include userinfo.h in
LyXRC.h, but this should not be too expensive.
2019-04-19 14:46:12 +02:00

31 lines
573 B
C++

// -*- C++ -*-
/**
* \file userinfo.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author John Levon
*
* Full author contact details are available in file CREDITS.
*/
#ifndef USERINFO_H
#define USERINFO_H
#include "support/strfwd.h"
namespace lyx {
namespace support {
/// return the current user's real name or user name
std::string const user_name();
/// return the current user's e-mail address
std::string const user_email();
} // namespace support
} // namespace lyx
#endif // USERINFO_H