MCPcopy Create free account
hub / github.com/bumptop/BumpTop / validate_uploadAndPost

Method validate_uploadAndPost

trunk/win/Source/TwitterClient.cpp:331–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329}
330
331bool 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
347bool TwitpicClient::uploadAndPost(QString message, QString path)
348{

Callers 2

isValidTossMethod · 0.80
isSourceValidMethod · 0.80

Calls 3

getFileExtensionMethod · 0.80
isEmptyMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected