kalarmd Library API Documentation

clientinfo.cpp

00001 /*
00002     Client access for KDE Alarm Daemon.
00003 
00004     This file is part of the KDE alarm daemon.
00005     Copyright (c) 2001 David Jarvie <software@astrojar.org.uk>
00006 
00007     This program is free software; you can redistribute it and/or modify
00008     it under the terms of the GNU General Public License as published by
00009     the Free Software Foundation; either version 2 of the License, or
00010     (at your option) any later version.
00011 
00012     This program is distributed in the hope that it will be useful,
00013     but WITHOUT ANY WARRANTY; without even the implied warranty of
00014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00015     GNU General Public License for more details.
00016 
00017     You should have received a copy of the GNU General Public License
00018     along with this program; if not, write to the Free Software
00019     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00020 
00021     As a special exception, permission is given to link this program
00022     with any edition of Qt, and distribute the resulting executable,
00023     without including the source code for Qt in the source distribution.
00024 */
00025 
00026 #include "clientinfo.h"
00027 
00028 ClientInfo::ClientInfo(const QCString &_appName, const QString& titl,
00029                        const QCString& dcopObj, int notifyType, bool disp,
00030                        bool wait)
00031   : appName( _appName ),
00032     title(titl),
00033     dcopObject(dcopObj),
00034     displayCalName(disp),
00035     waitForRegistration(wait),
00036     menuIndex(0),
00037     mValid( true )
00038 {
00039   setNotificationType(notifyType);
00040 }
00041 
00042 void ClientInfo::setNotificationType(int type)
00043 {
00044   switch (type)
00045   {
00046     case DCOP_NOTIFY:
00047     case DCOP_SIMPLE_NOTIFY:
00048     case COMMAND_LINE_NOTIFY:
00049       notificationType = (ClientInfo::NotificationType)type;
00050       break;
00051     case NO_START_NOTIFY:
00052     default:
00053       notificationType = NO_START_NOTIFY;
00054       break;
00055   }
00056 }
KDE Logo
This file is part of the documentation for kalarmd Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:38:04 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003