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

Method encodeParams

trunk/win/Source/BT_FileTransferManager.cpp:695–710  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

693}
694
695QString FileTransferManager::encodeParams( QHash<QString, QString> params )
696{
697 QString paramsStr;
698 QHashIterator<QString, QString> iter(params);
699 while (iter.hasNext())
700 {
701 iter.next();
702 if (!paramsStr.isEmpty())
703 paramsStr.append("&");
704 paramsStr.append(
705 QString("%1=")
706 .arg(iter.key())
707 .append(QUrl::toPercentEncoding(iter.value())));
708 }
709 return paramsStr;
710}
711
712bool FileTransferManager::hasTransfersToHandler(FileTransferEventHandler * handler)
713{

Callers 7

getHttpRequestMethod · 0.80
postHttpRequestMethod · 0.80
createLoginLinkMethod · 0.80
postHttpRequestMethod · 0.80
getHttpRequestMethod · 0.80
getEncodedParamsMethod · 0.80

Calls 8

hasNextMethod · 0.80
QStringFunction · 0.50
nextMethod · 0.45
isEmptyMethod · 0.45
appendMethod · 0.45
argMethod · 0.45
keyMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected