Граф коммитов

71 Коммитов

Автор SHA1 Сообщение Дата
Andrius Štikonas 3ba16bef75 Disable illegal menu options when there are no sockets. 2018-01-25 00:11:52 +00:00
Andrius Štikonas 2980e8fa97 Ranged based for conversion. 2017-03-13 02:04:56 +00:00
Andrius Štikonas 9ce7a65869 Convert some loops into C++11 ranged based for loops. 2016-09-02 22:33:26 +01:00
Andrius Štikonas a9e76830c1 Let Qt handle object deletion. 2016-09-02 20:56:06 +01:00
Andrius Štikonas 7efbeab4aa Whitespace fix. 2016-04-30 13:35:52 +01:00
Andrius Štikonas 7278cba9c0
Show if Daylight Saving Time is enabled. 2016-04-17 23:03:36 +01:00
Andrius Štikonas 99b2ed9d58
Rename dhcpMode to DST_TimezoneOffset.
Describtion by Fernando Silva:
While most TZs are integer, there are half time zones: Venezuela/Caracas, for
example, is GMT -4.5 and Kabul GMT +4.5. It is awkward, but we found that these
"half time zones" are identified by the second least significant bit of byte 161
(yes, the same used for DST). Therefore, we have the following possible combinations
for byte 161:
- 00: integer TZ, DST on
- 01: integer TZ, DST off
- 02: half TZ, DST on
- 03: half TZ, DST off

As a reference, one may consider the following examples:
- Azores (GMT-1), DST on:	byte 161 = 00, byte 164 = FF
- Caracas (GMT-4.5), DST off:   byte 161 = 03, byte 164 = FC
- Paris (GMT+1), DST off:       byte 161 = 01, byte 164 = 01
- Kabul (GMT+4.5), DST on:      bute 161 = 02, byte 164 = 04
2016-04-12 12:36:57 +01:00
Andrius Štikonas 4239cc9098
Use signed int for the value of currentIndex of combobox. 2016-04-06 17:50:09 +01:00
Andrius Štikonas cd52a6063e Add some debugging output when pairing. 2016-03-14 00:35:40 +00:00
Andrius Štikonas 504a700b80 Start implementing switch off timer in gui. 2015-11-16 01:51:27 +00:00
Andrius Štikonas af7a1545d1 Display simple IPv4 address in Qt 5.5 2015-11-16 01:29:57 +00:00
Andrius Štikonas f1cdc8260e Rename Countdown->Off timer
There are two types of countdowns supported by S20.
The one currently implemented automatically switches socket off
on a specified delay after switch on.
2015-11-16 01:15:19 +00:00
Andrius Štikonas 23c17e709e Improve support for multiple sockets in the gui. 2015-11-15 16:43:37 +00:00
Andrius Štikonas 6368de10a3 Print local time of the socket instead of UTC. 2015-11-15 15:36:22 +00:00
Andrius Štikonas a4f74c24b1 Add a check for valid timezones. 2015-11-15 03:09:37 +00:00
Andrius Štikonas 4e89c2a6c7 Sort using mac address because at the time of sorting socket names are not known yet. 2015-11-15 02:50:39 +00:00
Andrius Štikonas 4acb55c2e6 Output timezone as a decimal number. 2015-11-01 22:25:23 +00:00
Andrius Štikonas bc4c6cfcaa Add a function to convert hexadecimal QByteArrays to integers. 2015-11-01 15:40:48 +00:00
Andrius Štikonas c4d9ddb602 Add a function to convert integers to hexadecimals in QByteArray. 2015-11-01 03:56:05 +00:00
Andrius Štikonas 019fa723c1 Fix broken countdown support. 2015-11-01 00:31:38 +00:00
Andrius Štikonas 1049a56400 Sort sockets by their names. 2015-10-05 01:10:50 +01:00
Andrius Štikonas 7e79483e1b Fix build with Qt 5.5 2015-09-07 15:43:08 +01:00
Andrius Štikonas 1246e6d1db Implement toggling countdown state. 2015-09-04 22:49:13 +01:00
Andrius Štikonas 1b01658732 Add .kateconfig file. 2015-08-18 21:49:19 +01:00
Andrius Štikonas 482a2a0e5b Reformat with astyle. 2015-08-18 15:29:09 +01:00
Andrius Štikonas 4497d1e1c1 Add partial support for countdown. 2015-08-18 14:25:32 +01:00
Andrius Štikonas 20b97aed8c Simplify dialog.h (remove moc) 2015-06-10 03:24:53 +01:00
Andrius Štikonas fb36cfaca2 Add some basic graphical user interface. 2015-06-07 16:07:25 +01:00
Andrius Štikonas fb9d27c00c Add a note about on and off commands. 2015-05-27 00:09:50 +01:00
Andrius Štikonas 32cf746ace Rename some commandID enums to be closer their ASCII value
GlobalDiscover -> QueryAll
TableData      -> ReadTable
WriteTableData -> TableModify
2015-05-27 00:03:33 +01:00
Andrius Štikonas ba52a9862e Remove commandID magic numbers. 2015-05-26 23:53:21 +01:00
Andrius Štikonas de16fea254 Restore ability to set a different ssid.
Add on and off commands.
2015-05-26 00:02:19 +01:00
Andrius Štikonas df5cc31355 Do not emit stateChanged when receiving discover (too verbose). 2015-04-02 22:56:57 +01:00
Andrius Štikonas be34c3d5da Make TableData command work after initial pairing.
TableData command is modified a bit:
  00 00 00 00 -> 72 00 00 00

I don't know yet  what 72 stands for but apparently this command
still works in normal mode, so let us use it for now.
2015-04-02 22:45:59 +01:00
Andrius Štikonas b30da3495d Process Discover packets too. 2015-04-02 22:10:06 +01:00
Andrius Štikonas 354ec34d1e Move socketDateTime to socket class. 2015-04-02 01:31:37 +01:00
Andrius Štikonas 0253526834 Implement reading the current time of the socket. 2015-04-02 01:19:02 +01:00
Andrius Štikonas 5958acfd0a Also add qmake project. 2015-03-12 12:12:08 +00:00
Andrius Štikonas 8999a55c30 Add another method of pairing. 2015-03-11 12:34:56 +00:00
Andrius Štikonas 788cb86b50 whitespace 2015-03-08 11:34:01 +00:00
Andrius Štikonas dfd9399666 Add mutex to message sending function. 2015-03-08 11:29:33 +00:00
Andrius Štikonas 8a92e808f3 Stop trying to send the same datagram if it repeatedly fails. 2015-03-02 12:21:10 +00:00
Andrius Štikonas 6208514f70 Wait until WiWo-S20 network appears. 2015-03-02 11:58:37 +00:00
Andrius Štikonas 6319fa237b Try to connect to WiWo-S20 wifi. 2015-02-28 23:30:00 +00:00
Andrius Štikonas c7c93181bf Add support for initial pairing of the socket (WIP, some manual steps necessary). 2015-02-22 23:20:20 +00:00
Andrius Štikonas e7c521bc10 Print countdown. 2015-02-21 21:14:22 +00:00
Andrius Štikonas e22a8c6682 Add a copy of GPLv3. 2015-02-16 20:21:10 +00:00
Andrius Štikonas e231388e95 Parse domain server name. 2015-02-15 15:26:37 +00:00
Andrius Štikonas c414c091e8 Calculate message lengths ourselves. 2015-02-15 15:11:39 +00:00
Andrius Štikonas 277a5f46c5 Remove unused variable. 2015-02-15 14:41:09 +00:00