Skip to content

Commit 3139d17

Browse files
committed
replace line ending CRLF to LF
1 parent 4b33d72 commit 3139d17

3 files changed

Lines changed: 240 additions & 240 deletions

File tree

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
1-
#ifndef __NETLICENSING_H__
2-
#define __NETLICENSING_H__
3-
4-
#include "netlicensing/context.h"
5-
#include "netlicensing/service.h"
6-
#include "netlicensing/product.h"
7-
#include "netlicensing/licensee.h"
8-
#include "netlicensing/exception.h"
9-
#include "netlicensing/validation_result.h"
10-
#include "netlicensing/validation_parameters.h"
11-
12-
#ifdef __GNUC__
13-
#define DEPRECATED(decl) decl __attribute__ ((deprecated))
14-
#elif defined(_MSC_VER)
15-
#define DEPRECATED(decl) __declspec(deprecated) decl
16-
#else
17-
#pragma message("WARNING: DEPRECATED declaration for this compiler is not defined")
18-
#define DEPRECATED(decl) decl
19-
#endif
20-
21-
namespace netlicensing {
22-
23-
class ProductService {
24-
public:
25-
static Product create(Context& ctx, const Product&);
26-
static Product update(Context& ctx, const std::string& productNumber, const Product&);
27-
static void del(Context& ctx, const std::string& productNumber, bool forceCascade);
28-
static std::list<Product> list(Context& ctx, const std::string& filter);
29-
};
30-
31-
class LicenseeService {
32-
public:
33-
static Licensee create(Context& ctx, const Licensee&);
34-
static Licensee update(Context& ctx, const std::string& licenseeNumber, const Licensee&);
35-
static void del(Context& ctx, const std::string& licenseeNumber, bool forceCascade);
36-
static std::list<Licensee> list(Context& ctx, const std::string& filter);
37-
DEPRECATED(static ValidationResult validate(Context& ctx, const std::string& licenseeNumber,
38-
const std::string& productNumber = std::string(),
39-
const std::string& licenseeName = std::string(),
40-
const parameters_type& validationParameters = parameters_type()));
41-
static ValidationResult validate(Context& ctx, const std::string& licenseeNumber,
42-
const ValidationParameters& validationParameters);
43-
static void transfer(Context& ctx, const std::string& licenseeNumber, const std::string& sourceLicenseeNumber);
44-
};
45-
46-
47-
}
48-
49-
#endif //__NETLICENSING_H__
1+
#ifndef __NETLICENSING_H__
2+
#define __NETLICENSING_H__
3+
4+
#include "netlicensing/context.h"
5+
#include "netlicensing/service.h"
6+
#include "netlicensing/product.h"
7+
#include "netlicensing/licensee.h"
8+
#include "netlicensing/exception.h"
9+
#include "netlicensing/validation_result.h"
10+
#include "netlicensing/validation_parameters.h"
11+
12+
#ifdef __GNUC__
13+
#define DEPRECATED(decl) decl __attribute__ ((deprecated))
14+
#elif defined(_MSC_VER)
15+
#define DEPRECATED(decl) __declspec(deprecated) decl
16+
#else
17+
#pragma message("WARNING: DEPRECATED declaration for this compiler is not defined")
18+
#define DEPRECATED(decl) decl
19+
#endif
20+
21+
namespace netlicensing {
22+
23+
class ProductService {
24+
public:
25+
static Product create(Context& ctx, const Product&);
26+
static Product update(Context& ctx, const std::string& productNumber, const Product&);
27+
static void del(Context& ctx, const std::string& productNumber, bool forceCascade);
28+
static std::list<Product> list(Context& ctx, const std::string& filter);
29+
};
30+
31+
class LicenseeService {
32+
public:
33+
static Licensee create(Context& ctx, const Licensee&);
34+
static Licensee update(Context& ctx, const std::string& licenseeNumber, const Licensee&);
35+
static void del(Context& ctx, const std::string& licenseeNumber, bool forceCascade);
36+
static std::list<Licensee> list(Context& ctx, const std::string& filter);
37+
DEPRECATED(static ValidationResult validate(Context& ctx, const std::string& licenseeNumber,
38+
const std::string& productNumber = std::string(),
39+
const std::string& licenseeName = std::string(),
40+
const parameters_type& validationParameters = parameters_type()));
41+
static ValidationResult validate(Context& ctx, const std::string& licenseeNumber,
42+
const ValidationParameters& validationParameters);
43+
static void transfer(Context& ctx, const std::string& licenseeNumber, const std::string& sourceLicenseeNumber);
44+
};
45+
46+
47+
}
48+
49+
#endif //__NETLICENSING_H__

include/netlicensing/validation_parameters.h

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ namespace netlicensing {
1919
std::map<std::string, std::string> customParameters_i;
2020

2121
public:
22-
/**
23-
* Sets the target product
24-
*
25-
* @param productNumber
26-
* optional productNumber, must be provided in case licensee auto-create is enabled
22+
/**
23+
* Sets the target product
24+
*
25+
* @param productNumber
26+
* optional productNumber, must be provided in case licensee auto-create is enabled
2727
*/
2828
void setProductNumber(const String_t& productNumber) {
2929
productNumber_i = productNumber;
@@ -33,13 +33,13 @@ namespace netlicensing {
3333
return productNumber_i;
3434
}
3535

36-
/**
37-
* Sets the name for the new licensee
38-
*
39-
* @param licenseeName
40-
* optional human-readable licensee name in case licensee will be auto-created. This parameter must not
41-
* be the name, but can be used to store any other useful string information with new licensees, up to
42-
* 1000 characters.
36+
/**
37+
* Sets the name for the new licensee
38+
*
39+
* @param licenseeName
40+
* optional human-readable licensee name in case licensee will be auto-created. This parameter must not
41+
* be the name, but can be used to store any other useful string information with new licensees, up to
42+
* 1000 characters.
4343
*/
4444
void setLicenseeName(const String_t& licenseeName) {
4545
licenseeName_i = licenseeName;
@@ -49,11 +49,11 @@ namespace netlicensing {
4949
return licenseeName_i;
5050
}
5151

52-
/**
53-
* Sets the licensee secret
54-
*
55-
* @param licenseeSecret
56-
* licensee secret stored on the client side. Refer to Licensee Secret documentation for details.
52+
/**
53+
* Sets the licensee secret
54+
*
55+
* @param licenseeSecret
56+
* licensee secret stored on the client side. Refer to Licensee Secret documentation for details.
5757
*/
5858
void setLicenseeSecret(const String_t& licenseeSecret) {
5959
licenseeSecret_i = licenseeSecret;
@@ -67,7 +67,7 @@ namespace netlicensing {
6767
return parameters_i;
6868
}
6969

70-
void setProductModuleValidationParameters(const String_t& productModuleNumber, const String_t& productModuleKey, const String_t& productModuleValue) {
70+
void setProductModuleValidationParameters(const String_t& productModuleNumber, const String_t& productModuleKey, const String_t& productModuleValue) {
7171
parameters_i[productModuleNumber][productModuleKey] = productModuleValue;
7272
}
7373

0 commit comments

Comments
 (0)