-
Notifications
You must be signed in to change notification settings - Fork 21
/
InterSpecAddOn.h
46 lines (32 loc) · 1.78 KB
/
InterSpecAddOn.h
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
#ifndef InterSpecAddOn_h
#define InterSpecAddOn_h
/* InterSpec: an application to analyze spectral gamma radiation data.
Copyright 2018 National Technology & Engineering Solutions of Sandia, LLC
(NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
Government retains certain rights in this software.
For questions contact William Johnson via email at [email protected], or
alternative emails of [email protected], or [email protected].
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "InterSpec_config.h"
#include <string>
#include <functional>
static_assert( BUILD_AS_ELECTRON_APP, "You shouldnt be including InterSpecAddOn.h for non-electron builds." );
namespace InterSpecAddOn
{
bool send_nodejs_message( const std::string &session_token, const std::string &msg_name, const std::string &msg_data );
bool browse_for_directory( const std::string &session_token, const std::string &window_title,
const std::string &window_message,
std::function<void(std::string)> callback );
}//namespace InterSpecAddOn
#endif //#ifndef InterSpecAddOn_h