qstatus/qStatus/Models/PostingService.swift
Paweł Orzech c27437b33c
Initial implementation of qStatus macOS menubar app
Native macOS app for posting to Mastodon, WordPress (self-hosted), and Micro.blog.
Features: global hotkey (Ctrl+Option+Cmd+T), multiple accounts with selection,
image attachments (up to 4, drag-and-drop), floating panel UI, Keychain storage.
2026-02-27 23:40:51 +01:00

12 lines
368 B
Swift

import AppKit
protocol PostingService: Sendable {
var account: Account { get }
func uploadMedia(imageData: Data, filename: String, altText: String?) async throws -> String
func createPost(text: String, mediaIDs: [String]) async throws -> URL
}
struct PostingError: LocalizedError {
let message: String
var errorDescription: String? { message }
}