src/include/winmobile/spdm/DeviceManagementNode.h

00001 /*
00002  * Copyright (C) 2003-2007 Funambol
00003  *
00004  * This program is free software; you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License as published by
00006  * the Free Software Foundation; either version 2 of the License, or
00007  * (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00017  */
00018 
00019 #ifndef INCL_WINMOBILE_DEVICE_MANAGEMENT_NODE
00020 #define INCL_WINMOBILE_DEVICE_MANAGEMENT_NODE
00021 
00024 #include "base/fscapi.h"
00025 #include "base/util/ArrayElement.h"
00026 #include "spdm/ManagementNode.h"
00027 
00028 /*
00029  * Windows Mobile implementation of ManagementNode.
00030  */
00031 class DeviceManagementNode: public ManagementNode {
00032 
00033     private:
00034         TCHAR *fullContext;
00035 
00036     protected:
00037         void setFullContext(); 
00038 
00039     public:
00040 
00041         // ------------------------------------------ Constructors & destructors
00042 
00051         DeviceManagementNode(const char*  parent, const char*  name);
00052         DeviceManagementNode(const char*  fullName);  
00053         ~DeviceManagementNode();
00054 
00055         // --------------------------------------------------- Public methods
00056         /*
00057          * Returns the value of the given property
00058          *
00059          * @param property - the property name
00060          */
00061         char* readPropertyValue(const char*  property);
00062 
00063         /*
00064          * Sets a property value.
00065          *
00066          * @param property - the property name
00067          * @param value - the property value (zero terminated string)
00068          */
00069         void setPropertyValue(const char*  property, const char*  value);
00070 
00071         /*
00072          * Returns the children's name of the parent node. 
00073          */
00074         char **getChildrenNames();
00075 
00076         /*
00077          * Find how many children are defined for this node in the underlying
00078                  * config system.
00079          */
00080         int getChildrenMaxCount();
00081 
00082         /*
00083          * Creates a new ManagementNode with the exact content of this object.
00084          * The new instance MUST be created with the C++ new opertator.
00085          */
00086         ArrayElement* clone();
00087 
00088 };
00089 
00091 #endif

Generated on Fri Apr 27 12:29:19 2007 for Funambol C++ Client Library by  doxygen 1.5.2