diff options
author | psyc://loupsycedyglgamf.onion/~lynX <BM-NB7xa9gEpmJgYp9PVnEdACiZcGmmEJcY> | 2016-02-08 07:42:15 +0100 |
---|---|---|
committer | psyc://loupsycedyglgamf.onion/~lynX <BM-NB7xa9gEpmJgYp9PVnEdACiZcGmmEJcY> | 2016-02-08 07:42:15 +0100 |
commit | ea447d4c4bb523dd89dedd9f826517c3bafae2d1 (patch) | |
tree | 09913c9163e3041bf5cd6b7da44e539221719bee | |
parent | 51bad14b23cd08305a9225529e0e851473429cfc (diff) | |
download | secushare-ea447d4c4bb523dd89dedd9f826517c3bafae2d1.tar.gz secushare-ea447d4c4bb523dd89dedd9f826517c3bafae2d1.zip |
bureaucratic clean-ups
-rw-r--r-- | src/gnunet.h | 4 | ||||
-rw-r--r-- | src/gnunet/gnunet.cpp | 10 | ||||
-rw-r--r-- | src/nym/nym.h | 2 | ||||
-rw-r--r-- | src/settings/settings.cpp | 1 | ||||
-rw-r--r-- | src/settings/settings.h | 2 | ||||
-rw-r--r-- | src/social/guest.cpp | 4 | ||||
-rw-r--r-- | src/social/socialapp.cpp | 2 |
7 files changed, 18 insertions, 7 deletions
diff --git a/src/gnunet.h b/src/gnunet.h index 7c86ec2..e9c87bb 100644 --- a/src/gnunet.h +++ b/src/gnunet.h | |||
@@ -1,3 +1,7 @@ | |||
1 | // one of the two gnunet.h needs to have a different name... | ||
2 | // i suggest gnunet.cpp to be called eventloop.cpp since it | ||
3 | // doesnt really do anything gnunet | ||
4 | |||
1 | #include <gnunet/platform.h> | 5 | #include <gnunet/platform.h> |
2 | #include <gnunet/gnunet_util_lib.h> | 6 | #include <gnunet/gnunet_util_lib.h> |
3 | #include <gnunet/gnunet_psyc_util_lib.h> | 7 | #include <gnunet/gnunet_psyc_util_lib.h> |
diff --git a/src/gnunet/gnunet.cpp b/src/gnunet/gnunet.cpp index 8886808..b8b2a29 100644 --- a/src/gnunet/gnunet.cpp +++ b/src/gnunet/gnunet.cpp | |||
@@ -40,7 +40,9 @@ GnuNet::GnuNet (QObject * parent) | |||
40 | 40 | ||
41 | GnuNet::~GnuNet () | 41 | GnuNet::~GnuNet () |
42 | { | 42 | { |
43 | qDebug () << "GnuNet: destructed"; | 43 | // user could get very nervous should they ever see the message that |
44 | // gnunet got destructed when it is just a bureaucratic event loop class | ||
45 | qDebug () << "GnuNet object: destructed"; | ||
44 | } | 46 | } |
45 | 47 | ||
46 | 48 | ||
@@ -54,7 +56,7 @@ GnuNet::start () | |||
54 | GNUNET_PROGRAM_run (main_argc, main_argv, | 56 | GNUNET_PROGRAM_run (main_argc, main_argv, |
55 | APP_NAME, APP_NAME, | 57 | APP_NAME, APP_NAME, |
56 | options, mainLoopCallback, this); | 58 | options, mainLoopCallback, this); |
57 | qDebug () << "GnuNet: event loop finished"; | 59 | qDebug () << "GnuNet object: event loop finished"; |
58 | Q_ASSERT (!m_connected); | 60 | Q_ASSERT (!m_connected); |
59 | } | 61 | } |
60 | 62 | ||
@@ -69,7 +71,7 @@ GnuNet::stop () | |||
69 | void | 71 | void |
70 | GnuNet::shutdownSlot () | 72 | GnuNet::shutdownSlot () |
71 | { | 73 | { |
72 | qDebug () << "GnuNet: shutting down"; | 74 | qDebug () << "GnuNet object: shutting down"; |
73 | if (m_social) | 75 | if (m_social) |
74 | { | 76 | { |
75 | delete m_social; | 77 | delete m_social; |
@@ -77,7 +79,7 @@ GnuNet::shutdownSlot () | |||
77 | } | 79 | } |
78 | setConnected (false); | 80 | setConnected (false); |
79 | GNUNET_SCHEDULER_shutdown (); | 81 | GNUNET_SCHEDULER_shutdown (); |
80 | qDebug () << "GnuNet: shut down finished"; | 82 | qDebug () << "GnuNet object: shut down finished"; |
81 | emit stopped (); | 83 | emit stopped (); |
82 | } | 84 | } |
83 | 85 | ||
diff --git a/src/nym/nym.h b/src/nym/nym.h index 0cd444d..350a21c 100644 --- a/src/nym/nym.h +++ b/src/nym/nym.h | |||
@@ -74,6 +74,8 @@ class Nym : public QObject | |||
74 | QString | 74 | QString |
75 | gnsUrl () | 75 | gnsUrl () |
76 | { | 76 | { |
77 | // should GNS appear explicitly in a client app? shouldn't it be | ||
78 | // used transparently behind the gnunet social API instead? | ||
77 | return QString ("gnunet://gns/%1").arg (m_pubKeyStr); | 79 | return QString ("gnunet://gns/%1").arg (m_pubKeyStr); |
78 | } | 80 | } |
79 | 81 | ||
diff --git a/src/settings/settings.cpp b/src/settings/settings.cpp index f4ba078..24f38a1 100644 --- a/src/settings/settings.cpp +++ b/src/settings/settings.cpp | |||
@@ -23,6 +23,7 @@ | |||
23 | 23 | ||
24 | Settings::Settings (QObject * parent) | 24 | Settings::Settings (QObject * parent) |
25 | : QSettings (QSettings::IniFormat, QSettings::UserScope, | 25 | : QSettings (QSettings::IniFormat, QSettings::UserScope, |
26 | // gnunet is wrong. we are definitely not in gnunet here. | ||
26 | "gnunet", "secushare", parent) | 27 | "gnunet", "secushare", parent) |
27 | { | 28 | { |
28 | sync (); | 29 | sync (); |
diff --git a/src/settings/settings.h b/src/settings/settings.h index 5c2a0e4..19e63a4 100644 --- a/src/settings/settings.h +++ b/src/settings/settings.h | |||
@@ -74,6 +74,7 @@ class Settings : public QSettings | |||
74 | QColor | 74 | QColor |
75 | leftSideColor () | 75 | leftSideColor () |
76 | { | 76 | { |
77 | // color code comes from secushare logo | ||
77 | return value ("ui/leftSideColor", QColor ("#EB0C60")).value<QColor> (); | 78 | return value ("ui/leftSideColor", QColor ("#EB0C60")).value<QColor> (); |
78 | } | 79 | } |
79 | 80 | ||
@@ -88,6 +89,7 @@ class Settings : public QSettings | |||
88 | QColor | 89 | QColor |
89 | rightSideColor () | 90 | rightSideColor () |
90 | { | 91 | { |
92 | // color code comes from secushare logo | ||
91 | return value ("ui/rightSideColor", QColor ("#EFC208")).value<QColor> (); | 93 | return value ("ui/rightSideColor", QColor ("#EFC208")).value<QColor> (); |
92 | } | 94 | } |
93 | 95 | ||
diff --git a/src/social/guest.cpp b/src/social/guest.cpp index 3050595..4b2d783 100644 --- a/src/social/guest.cpp +++ b/src/social/guest.cpp | |||
@@ -15,8 +15,8 @@ Guest::Guest (GNUNET_SOCIAL_App *app, | |||
15 | if (NULL == entryMsg) | 15 | if (NULL == entryMsg) |
16 | { | 16 | { |
17 | GNUNET_PSYC_Environment *env = GNUNET_PSYC_env_create (); | 17 | GNUNET_PSYC_Environment *env = GNUNET_PSYC_env_create (); |
18 | GNUNET_PSYC_env_add (env, GNUNET_PSYC_OP_ASSIGN, "_abc", "abc def", 7); | 18 | GNUNET_PSYC_env_add (env, GNUNET_PSYC_OP_ASSIGN, "_test_abc", "abc def", 7); |
19 | GNUNET_PSYC_env_add (env, GNUNET_PSYC_OP_ASSIGN, "_abc_def", "abc def ghi", 11); | 19 | GNUNET_PSYC_env_add (env, GNUNET_PSYC_OP_ASSIGN, "_test_abc_def", "abc def ghi", 11); |
20 | entryMsg = GNUNET_PSYC_message_create ("_request_enter", env, NULL, 0); | 20 | entryMsg = GNUNET_PSYC_message_create ("_request_enter", env, NULL, 0); |
21 | } | 21 | } |
22 | 22 | ||
diff --git a/src/social/socialapp.cpp b/src/social/socialapp.cpp index 7ff6971..f72360c 100644 --- a/src/social/socialapp.cpp +++ b/src/social/socialapp.cpp | |||
@@ -99,7 +99,7 @@ SocialApp::createPlace () | |||
99 | void | 99 | void |
100 | SocialApp::placeEnter (QString pubKeyStr, QString peerIdStr) | 100 | SocialApp::placeEnter (QString pubKeyStr, QString peerIdStr) |
101 | { | 101 | { |
102 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Entering to place %s as guest.\n", | 102 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Entering place %s as guest.\n", |
103 | pubKeyStr.toStdString ().c_str ()); | 103 | pubKeyStr.toStdString ().c_str ()); |
104 | 104 | ||
105 | GNUNET_CRYPTO_EddsaPublicKey *pubKey = new GNUNET_CRYPTO_EddsaPublicKey; | 105 | GNUNET_CRYPTO_EddsaPublicKey *pubKey = new GNUNET_CRYPTO_EddsaPublicKey; |