| 329 | } |
| 330 | |
| 331 | bool TwitpicClient::validate_uploadAndPost( QString message, QString& photo ) |
| 332 | { |
| 333 | // ensure not empty |
| 334 | if (photo.isEmpty()) |
| 335 | return false; |
| 336 | |
| 337 | // check if the extensions are supported |
| 338 | QString ext = fsManager->getFileExtension(photo); |
| 339 | if (!_supportedUploadExtensionsContentTypes.contains(ext)) |
| 340 | { |
| 341 | return false; |
| 342 | } |
| 343 | |
| 344 | return true; |
| 345 | } |
| 346 | |
| 347 | bool TwitpicClient::uploadAndPost(QString message, QString path) |
| 348 | { |
no test coverage detected