Subversion Repositories Projects

Rev

Rev 167 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 167 Rev 199
1
/***************************************************************************
1
/***************************************************************************
2
 *   Copyright (C) 2008 by Manuel Schrape                                  *
2
 *   Copyright (C) 2008 by Manuel Schrape                                  *
3
 *   manuel.schrape@gmx.de                                                 *
3
 *   manuel.schrape@gmx.de                                                 *
4
 *                                                                         *
4
 *                                                                         *
5
 *   This program is free software; you can redistribute it and/or modify  *
5
 *   This program is free software; you can redistribute it and/or modify  *
6
 *   it under the terms of the GNU General Public License as published by  *
6
 *   it under the terms of the GNU General Public License as published by  *
7
 *   the Free Software Foundation; either version 2 of the License.        *
7
 *   the Free Software Foundation; either version 2 of the License.        *
8
 *                                                                         *
8
 *                                                                         *
9
 *   This program is distributed in the hope that it will be useful,       *
9
 *   This program is distributed in the hope that it will be useful,       *
10
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
10
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
11
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
11
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
12
 *   GNU General Public License for more details.                          *
12
 *   GNU General Public License for more details.                          *
13
 *                                                                         *
13
 *                                                                         *
14
 *   You should have received a copy of the GNU General Public License     *
14
 *   You should have received a copy of the GNU General Public License     *
15
 *   along with this program; if not, write to the                         *
15
 *   along with this program; if not, write to the                         *
16
 *   Free Software Foundation, Inc.,                                       *
16
 *   Free Software Foundation, Inc.,                                       *
17
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
17
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
18
 ***************************************************************************/
18
 ***************************************************************************/
19
#ifndef TOOLBOX_H
19
#ifndef TOOLBOX_H
20
#define TOOLBOX_H
20
#define TOOLBOX_H
21
 
21
 
22
#include <QString>
22
#include <QString>
-
 
23
#include <QIcon>
23
#include "global.h"
24
#include "global.h"
24
 
25
 
25
class ToolBox
26
class ToolBox
26
{
27
{
27
    public :
28
    public :
28
        ToolBox();
29
        ToolBox();
29
        static bool Decode64(sRxData &RX, bool Long = true);
30
        static bool Decode64(sRxData &RX, bool Long = true);
-
 
31
        static QString Encode64(char Data[150],unsigned int Length);
30
        static bool check_CRC(QString RXString);
32
        static bool check_CRC(QString RXString);
31
        static QString add_CRC(QString TXString);
33
        static QString add_CRC(QString TXString);
32
        static QString Encode64(char Data[150],unsigned int Length);
-
 
33
        static QString DataToString(int Data[150]);
-
 
34
        static int Data2Int(int *Data , int Start, bool is_signed = true);
34
        static int Data2Int(int *Data , int Start, bool is_signed = true);
35
        static long Data2Long(int *Data , int Start, bool is_signed = true);
35
        static long Data2Long(int *Data , int Start, bool is_signed = true);
36
        static QString Data2QString(int Data[150], int Start = 0, int End = 150);
36
        static QString Data2QString(int Data[150], int Start = 0, int End = 150);
37
 
-
 
-
 
37
        static QIcon Icon(int ID);
-
 
38
        static QString get_Float(long Wert, long Count);
38
};
39
};
39
 
40
 
40
#endif // TOOLBOX_H
41
#endif // TOOLBOX_H
41
 
42