Changeset View
Changeset View
Standalone View
Standalone View
KBlocksConfigManager.cpp
| 1 | /*************************************************************************** | 1 | /*************************************************************************** | ||
|---|---|---|---|---|---|
| 2 | * KBlocks, a falling blocks game by KDE * | 2 | * KBlocks, a falling blocks game by KDE * | ||
| 3 | * Copyright (C) 2010 Zhongjie Cai <squall.leonhart.cai@gmail.com> * | 3 | * Copyright (C) 2010 Zhongjie Cai <squall.leonhart.cai@gmail.com> * | ||
| 4 | * * | 4 | * * | ||
| 5 | * This program is free software; you can redistribute it and/or modify * | 5 | * This program is free software; you can redistribute it and/or modify * | ||
| 6 | * it under the terms of the GNU General Public License as published by * | 6 | * it under the terms of the GNU General Public License as published by * | ||
| 7 | * the Free Software Foundation; either version 2 of the License, or * | 7 | * the Free Software Foundation; either version 2 of the License, or * | ||
| 8 | * (at your option) any later version. * | 8 | * (at your option) any later version. * | ||
| 9 | ***************************************************************************/ | 9 | ***************************************************************************/ | ||
| 10 | #include "KBlocksConfigManager.h" | 10 | #include "KBlocksConfigManager.h" | ||
| 11 | 11 | | |||
| 12 | #include <sys/types.h> | 12 | #include <sys/types.h> | ||
| 13 | #include <sys/stat.h> | 13 | #include <sys/stat.h> | ||
| 14 | #include <fcntl.h> | 14 | #include <fcntl.h> | ||
| 15 | #include <unistd.h> | | |||
| 16 | #include <stdlib.h> | 15 | #include <stdlib.h> | ||
| 17 | #include <cctype> | 16 | #include <cctype> | ||
| 18 | #include <algorithm> | 17 | #include <algorithm> | ||
| 19 | 18 | | |||
| 20 | KBlocksConfigManager::KBlocksConfigManager() | 19 | KBlocksConfigManager::KBlocksConfigManager() | ||
| 21 | { | 20 | { | ||
| 22 | stConfigSectionList.clear(); | 21 | stConfigSectionList.clear(); | ||
| 23 | stConfigKeyNameList.clear(); | 22 | stConfigKeyNameList.clear(); | ||
| ▲ Show 20 Lines • Show All 377 Lines • Show Last 20 Lines | |||||