The function returns the registered modules in the given category as a pointer list. The pointer list is empty if there is no such category available.
| 488 | // as a pointer list. The pointer list is empty if there is no such |
| 489 | // category available. |
| 490 | QList<Module *> Category::getModules (QString category) { |
| 491 | QList<Module *> res; |
| 492 | QList<Category *>::const_iterator it; |
| 493 | for (it = Category::Categories.constBegin(); |
| 494 | it != Category::Categories.constEnd(); it++) { |
| 495 | if (category == (*it)->Name) { |
| 496 | res = (*it)->Content; |
| 497 | } |
| 498 | } |
| 499 | return res; |
| 500 | } |
| 501 | |
| 502 | // Returns the index number into the category list for the given |
| 503 | // category name. The function returns minus 1 if there is no such |
nothing calls this directly
no outgoing calls
no test coverage detected