How vamamurin/remotepcviagmail works
This is a Gmail-controlled Windows computer utility. Its main workflow polls Gmail for a new message, extracts the sender and command, dispatches the command to local system actions, and sends results back by email; a Qt window also exposes command actions. The sampled server and helper excerpts establish the polling, dispatch, several action-to-result paths, and email sending. OAuth setup and some GUI/action wiring are represented from repository references or documented interfaces, so uncertain links are omitted or dashed.
Main entry points: commandHelper.cpp Command dispatcher · Server.cpp Mail command loop · gmailSender.cpp Email creation and sending · base64_encode.cpp Image encoding
Components 17
Control and setup
- Mail command loop
Source/Server.cpp - OAuth setup
Source/__inIt__.cpp - Qt command window
GUI/MainWindow.cpp
Computer actions
- Command dispatcher
commandHelper/commandHelper.cpp - System commands
commandHelper/commandHelper.cpp - Network details
commandHelper/ipconfig.cpp - File operations
commandHelper/getfile.cpp - File deletion
commandHelper/deletefile.cpp - Screen capture
commandHelper/screencapture.cpp - Webcam capture
commandHelper/webcam.cpp
Gmail messaging
- Gmail API
- Email creation and sending
gmailSender/gmailSender.cpp
Shared support
- Image encoding
base64_encode/base64_encode.cpp - HTTP callbacks
callBack/callBack.cpp - JSON parsing
include/json.hpp - Base64 codec
include/base64.hpp
Other components
- Computer user
Connections 18
- Computer user → Gmail API: sends commands
README.md - Mail command loop → Gmail API: polls messages
Source/Server.cpp - Mail command loop → OAuth setup: loads credentials
Source/Server.cpp - Mail command loop → JSON parsing: parses responses
Source/Server.cpp - Mail command loop → Command dispatcher: dispatches commands
Source/Server.cpp - Mail command loop → Email creation and sending: reads sender
Source/Server.cpp - Command dispatcher → System commands: runs commands
commandHelper/commandHelper.cpp - Command dispatcher → Network details: runs network query
commandHelper/commandHelper.cpp - Command dispatcher → File operations: retrieves files
commandHelper/commandHelper.cpp - Command dispatcher → File deletion: deletes files
commandHelper/commandHelper.cpp - Command dispatcher → Screen capture: captures screen
commandHelper/commandHelper.cpp - Command dispatcher → Webcam capture: records video
commandHelper/commandHelper.cpp - Command dispatcher → Email creation and sending: sends results
commandHelper/commandHelper.cpp - Qt command window → Command dispatcher: invokes actions
- Email creation and sending → Gmail API: sends email
gmailSender/gmailSender.cpp - Email creation and sending → Image encoding: encodes attachments
gmailSender/gmailSender.cpp - Email creation and sending → HTTP callbacks: uses callbacks
gmailSender/gmailSender.cpp - Image encoding → Base64 codec: encodes bytes