summaryrefslogtreecommitdiffstats
path: root/pica-client/nodes.h
diff options
context:
space:
mode:
authorAnton <anton@picapica>2017-12-01 22:16:24 +0400
committerAnton <anton@picapica>2017-12-01 22:16:24 +0400
commit0f726c30f5f11990d325bc5e55015c42c80cd9d2 (patch)
treef8c9b83cc440dd3a2f43285dc35199435f6e2701 /pica-client/nodes.h
parentac041927bc0c82e33acaa9e15fd46ecca0b77172 (diff)
downloadpica-pica-0f726c30f5f11990d325bc5e55015c42c80cd9d2.tar.gz
pica-pica-0f726c30f5f11990d325bc5e55015c42c80cd9d2.zip
fixed code style on all source files (*.c *.cpp *.h) using astyle --style=allman --lineend=linux --indent=tab --pad-oper
Diffstat (limited to 'pica-client/nodes.h')
-rw-r--r--pica-client/nodes.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/pica-client/nodes.h b/pica-client/nodes.h
index a24fed2..edbf5e0 100644
--- a/pica-client/nodes.h
+++ b/pica-client/nodes.h
@@ -9,21 +9,21 @@
class Nodes
{
public:
- struct NodeRecord
- {
- QString address;
- quint16 port;
- };
+ struct NodeRecord
+ {
+ QString address;
+ quint16 port;
+ };
- Nodes(QString storage);
- void Add(NodeRecord &n);
- QList<NodeRecord> GetNodes();
- void MakeClean();//remove old inactive node records
- void UpdateStatus(NodeRecord &n, bool alive);
+ Nodes(QString storage);
+ void Add(NodeRecord &n);
+ QList<NodeRecord> GetNodes();
+ void MakeClean();//remove old inactive node records
+ void UpdateStatus(NodeRecord &n, bool alive);
private:
- QSqlDatabase dbconn;
- QSqlError lasterr;
+ QSqlDatabase dbconn;
+ QSqlError lasterr;
};