Commit Graph
47 Commits
Author SHA1 Message Date
Vibhav Pant 5379eb4695 Add CreatePreferencesManager implementation. 2023-08-27 12:25:01 +05:30
Vibhav Pant a931c295d2 initBusConnections: Start an async event loop after creating connections. 2023-08-27 12:24:36 +05:30
Vibhav Pant e1139bfba7 GetLocalAppDataPath: Use XDG_CONFIG_HOME. 2023-08-27 12:24:22 +05:30
Vibhav Pant de32aec382 GetDownloadPathInternal: Construct DeviceInfo correctly. 2023-08-27 12:24:02 +05:30
Vibhav Pant f2d9e1feeb Add method ConnectedToWifi. 2023-08-27 09:44:13 +05:30
Vibhav Pant f5c66fb83f Add Wifi Direct files. 2023-08-27 00:35:37 +05:30
Vibhav Pant c4f805b377 Add WifiDirectSocket methods. 2023-08-27 00:35:28 +05:30
Vibhav Pant 0df941c560 Add Wifi Direct medium 2023-08-27 00:32:55 +05:30
Vibhav Pant b5403f443a Add ConnectedToWifi. 2023-08-27 00:17:56 +05:30
Vibhav Pant 2a05ca9620 Add additional files. 2023-08-26 21:49:42 +05:30
Vibhav Pant 1b70335184 Implement remaining platform methods. 2023-08-26 16:46:25 +05:30
Vibhav Pant dc6aa72db6 Use sdbus-c++ glue proxies for device info. 2023-08-23 20:33:57 +05:30
Vibhav Pant 24f6c79445 Use XDG_RUNTIME_PATH for GetTemporaryPath 2023-08-23 17:47:27 +05:30
Vibhav Pant 929b3c6076 Merge remote-tracking branch 'proatgram/linux-platform' 2023-08-23 17:41:43 +05:30
Vibhav Pant 409d4c1fdb Add additional impls. 2023-08-23 17:30:14 +05:30
Vibhav Pant e7be02752d Add headers to library comm. 2023-08-23 17:29:59 +05:30
Vibhav Pant 65f61333c0 Add BluezObjectManager. 2023-08-23 16:01:57 +05:30
Vibhav Pant c916ea039d Add more wifi code. 2023-08-23 16:01:39 +05:30
Vibhav Pant f395618633 Add additional WiFi code. 2023-08-23 00:48:22 +05:30
Vibhav Pant ff55edb5e4 Code dump. 2023-08-21 23:19:01 +05:30
Timothy Hutchins 4a4056694a Implemented missing implementation files
I missed some implementation when I was looking over them. These are
them.
2023-08-16 21:37:52 -05:00
Timothy Hutchins 17786cbec3 Added base implementation for input_file and output_file
This are unimplemented currently, but will be in the future.
2023-08-16 21:36:04 -05:00
Timothy Hutchins 90d8e208eb Implemented a TimerQueue class and a Timer class
The Windows implementation of the Timer class (in timer.h) used Timer
Queues. This brings in implementation for a mostly Windows complient
TimerQueue class to work with the Timer class.
2023-08-16 21:31:31 -05:00
Vibhav Pant ba07f52103 Simplify Bluetooth code. 2023-08-16 21:04:18 +05:30
Vibhav Pant c5f818c90a Use NetworkManager object for checking connectivity. 2023-08-16 19:03:47 +05:30
Vibhav Pant 9b742d920a Add initial wifi medium code. 2023-08-16 02:00:09 +05:30
Vibhav Pant c8af59666d Rewrite dbus code using sdbus-c++ 2023-08-15 20:52:51 +05:30
Vibhav Pant aea2e16937 Walk through InterfacesAdded data correctly. 2023-08-09 18:42:56 +05:30
Timothy Hutchins fa197d2036 Implemented submittable_executor and some other missed files
A file was named wrong. It was changed.
2023-08-07 15:16:43 -05:00
Timothy Hutchins e6f52fba98 Implemented preferences_manager and helpers 2023-08-07 13:58:39 -05:00
Timothy Hutchins 21d3dfca4e Implemented scheduled_executor 2023-08-06 18:28:46 -05:00
Timothy Hutchins 1230cbb5d3 Added implementation for test_utils 2023-08-06 16:39:57 -05:00
Timothy Hutchins ea13cbc237 Implemented Windows implementation compliant Linux http_loader
The `http_loader` class takes a `WebRequest` with information to send a
web request, and sends it. This uses `libcurl`, which is present from
installation on most major Linux distrobutions (e.g. Fedora, Ubuntu,
PopOS...).

If libcurl is not present on the target system, it will need to be
installed.
2023-08-04 18:13:05 -05:00
Vibhav Pant 037d8c6f38 Add additional libraries. 2023-08-03 17:17:59 +05:30
Vibhav Pant 622451436b Refactor 2023-08-03 17:14:03 +05:30
Timothy Hutchins 2539ec1610 Implemented some more Linux equivalents 2023-08-02 18:24:19 -05:00
Vibhav Pant b5ba24bc06 Add additional code for implementing BluetoothClassicMedium. 2023-08-01 18:27:05 +05:30
Vibhav Pant b5552e268c Add BluetoothServerSocket implementation. 2023-08-01 18:22:46 +05:30
Vibhav Pant b66e7ff735 More bluetooth medium code. 2023-07-30 02:10:58 +05:30
Vibhav Pant f9a62a24dc Add bluetooth_adapter implementation. 2023-07-23 19:01:50 +05:30
Vibhav Pant 545646f63e Use cleanup attribute for freeing libsystemd resources. 2023-07-23 19:01:14 +05:30
Vibhav Pant 112072dbad Add additional methods for DeviceInfo. 2023-07-22 20:16:26 +05:30
Vibhav Pant af5bea6a3d Initial sketch. 2023-07-22 15:32:25 +05:30
Timothy Hutchins 46928a3347 Implemented Linux equivalent to Windows file_path*
This adds a Linux equivalent to file path operations done in the Windows
headers and source files. Some differences that will occur are the
invalid path names and contents, as there are no invalid path names, and
only one invalid path content (excluding non-printable characters) on
Linux.
2023-05-21 18:58:33 -05:00
Timothy Hutchins cbef0de68d Added program data directories to Linux platform device_info
There are a couple of places where apps can store data in Linux, one is
in the HOME directory, which is being phased out, the second, is in
HOME/.config, and the other is HOME/.local/share. This uses
HOME/.local/share, and since there isn't a common appdata path on Linux
that function will just return the local appdata path.
2023-05-21 17:07:15 -05:00
Timothy Hutchins d387a44159 Fix memory leak with getting interfaces
There was no free after we were finished with the interface pointer
2023-05-19 19:51:04 -05:00
Timothy Hutchins ff9438a3ed Started implementing Linux specific platform
This is the start of the implementing for the Linux platform.

I aim to make this as similar to the Windows platform as possible,
although due to the fundamental difference in the two OS's, there will
be things that need to be different.
As such, I will be using the Windows platform files as a base, and
reimplementing the functions with Linux equivalents.

I am sure this will have bugs, which by my best attempt will be fixed
when found.
2023-05-19 19:19:15 -05:00