FileTransferStatus.cc
Go to the documentation of this file.
2 
3 #include <iomanip>
4 #include <sstream>
5 #include <string>
6 
9 {
10  switch (stat) {
11  default: {
12  std::ostringstream os;
13  os << "UNKNOWN" << std::setfill('0') << std::setw(3)
14  << static_cast<int>(stat);
15  return os.str();
16  }
18  return "PENDING";
20  return "SUCCESS";
22  return "BAD_REQUEST";
24  return "UNAUTHORIZED";
26  return "PAYMENT_REQUIRED";
28  return "FORBIDDEN";
30  return "NOT_FOUND";
32  return "GONE";
34  return "TOO_LARGE";
36  return "URI_TOO_LONG";
38  return "SERVER_ERROR";
40  return "UNAVAILABLE";
41  }
42 }
std::string string
Definition: nybbler.cc:12
std::string translateFileTransferStatus(FileTransferStatus stat)
Q_EXPORT QTSManip setw(int w)
Definition: qtextstream.h:331
Q_EXPORT QTSManip setfill(int f)
Definition: qtextstream.h:337
#define SUCCESS
Definition: DBScan3DAlg.h:39