summaryrefslogtreecommitdiff
path: root/cad/plugins/NanoVision-1/include/Nanorex/Interface/NXNanoVisionResultCodes.h
blob: 33a9bfa9d0f22bd7159b3dd312c83e2a34671bf0 (plain)
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
// Copyright 2008 Nanorex, Inc.  See LICENSE file for details.

#ifndef NX_NANOVISIONRESULTCODES_H
#define NX_NANOVISIONRESULTCODES_H

#ifdef WIN32
#	ifdef _MSC_VER
#		pragma warning(disable:4786)
#	endif
#endif

#include <vector>
#include <QObject>
#include <QString>

#include "Nanorex/Utility/NXCommandResult.h"

namespace Nanorex {

typedef enum {
    NX_NO_CODE = -2,
    NX_INTERNAL_ERROR = -1,         NX_CMD_SUCCESS = 0,
    NX_FILE_NOT_FOUND = 1,          NX_PLUGIN_NOT_FOUND = 2,
    NX_PLUGIN_CAUSED_ERROR = 3,     NX_PLUGIN_REPORTS_ERROR = 4,
    NX_PLUGIN_REPORTS_WARNING = 5,  NX_INITIALIZATION_ERROR = 6
} NXResultCode;

extern QString GetNV1ResultCodeString(NXCommandResult* commandResult);

} // Nanorex::

#endif