~ubuntu-branches/ubuntu/quantal/aria2/quantal

« back to all changes in this revision

Viewing changes to src/RpcRequest.cc

  • Committer: Package Import Robot
  • Author(s): Kartik Mistry
  • Date: 2011-11-08 20:25:08 UTC
  • mfrom: (2.5.7 sid)
  • Revision ID: package-import@ubuntu.com-20111108202508-scfph8rj6tz0cckk
Tags: 1.13.0-1
* New upstream version:
  + Depends on libgcrypt11 (>= 1.5.0-3) (Closes: #642989)

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
  return *this;
65
65
}
66
66
 
67
 
const String* RpcRequest::getStringParam(size_t index) const
68
 
{
69
 
  const String* stringParam = 0;
70
 
  if(params->size() > index) {
71
 
    stringParam = asString(params->get(index));
72
 
  }
73
 
  return stringParam;
74
 
}
75
 
 
76
 
const Integer* RpcRequest::getIntegerParam(size_t index) const
77
 
{
78
 
  const Integer* integerParam = 0;
79
 
  if(params->size() > index) {
80
 
    integerParam = asInteger(params->get(index));
81
 
  }
82
 
  return integerParam;
83
 
}
84
 
 
85
 
const List* RpcRequest::getListParam(size_t index) const
86
 
{
87
 
  const List* listParam = 0;
88
 
  if(params->size() > index) {
89
 
    listParam = asList(params->get(index));
90
 
  }
91
 
  return listParam;
92
 
}
93
 
 
94
 
const Dict* RpcRequest::getDictParam(size_t index) const
95
 
{
96
 
  const Dict* dictParam = 0;
97
 
  if(params->size() > index) {
98
 
    dictParam = asDict(params->get(index));
99
 
  }
100
 
  return dictParam;
101
 
}
102
 
 
103
67
} // namespace rpc
104
68
 
105
69
} // namespace aria2