/*************************************************************************** * Copyright (C) 2010 by Dario Freddi * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * ***************************************************************************/ #ifndef POWERDEVIL_PROFILEGENERATOR_H #define POWERDEVIL_PROFILEGENERATOR_H class KComponentData; namespace PowerDevil { namespace ProfileGenerator { enum GeneratorResult { ResultFailed = 0, ResultGenerated = 1, ResultUpgraded = 2 }; enum OldIdleAction { None = 0, Standby = 1, S2Ram = 2, S2Disk = 4, Shutdown = 8, Lock = 16, ShutdownDialog = 32, TurnOffScreen = 64 }; enum NewMode { NoneMode = 0, ToRamMode = 1, ToDiskMode = 2, SuspendHybridMode = 4, ShutdownMode = 8, LogoutDialogMode = 16, LockScreenMode = 32, TurnOffScreenMode = 64 }; GeneratorResult generateProfiles(bool toRam, bool toDisk, bool tryUpgrade = false); void upgradeProfilesv1(bool toRam, bool toDisk); void upgradeProfilesv2(); unsigned int upgradeOldAction(unsigned int actionId); } } #endif // POWERDEVIL_PROFILEGENERATOR_H