How pocketlib-devs/pocketlib works
PocketLib is a Qt Widgets library-management application. The user-facing workflow starts in the main window, where users can authenticate and interact with library features; the app uses Firebase-backed authentication and Firestore data operations. The UI also exposes book discovery, personal saved books, administration, checkout, and fine handling. The excerpts show the app startup, manager initialization, a fine lookup, and portions of the network clients. Other feature links are not drawn where the sampled code does not establish the caller relationship.
Main entry points: mainwindow.cpp Main window · AuthManager.cpp Authentication client · FirestoreClient.cpp Fine operations · main.cpp App startup
Components 19
Application UI
- App startup
main.cpp - Main window
mainwindow.cpp - Book discovery
mainwindow.cpp - Saved books
mainwindow.cpp - Admin workflows
mainwindow.cpp - Fine handling
mainwindow.cpp
Identity
- Authentication client
auth/AuthManager.cpp - Firebase Identity
Library Services
- Catalog operations
firestore/FirestoreClient.cpp - User records
firestore/FirestoreClient.cpp - Checkout operations
firestore/FirestoreClient.cpp - Saved-book operations
firestore/FirestoreClient.cpp - Fine operations
firestore/FirestoreClient.cpp - Cover image upload
firestore/FirestoreClient.cpp - Firestore service
- Cloudinary
Domain Models
- Book model
firestore/Book.h - User model
firestore/UserInfo.h
Other components
- Library user
Connections 8
- Library user → Main window: uses
- App startup → Main window: creates
main.cpp - Main window → Authentication client: initializes
mainwindow.cpp - Main window → Catalog operations: initializes
mainwindow.cpp - Main window → Fine operations: requests fine
mainwindow.cpp - Authentication client → Firebase Identity: authenticates
auth/AuthManager.cpp - Fine operations → Firestore service: reads fine
firestore/FirestoreClient.cpp - Cover image upload → Cloudinary: uploads image
firestore/FirestoreClient.cpp