src/include/windows/spdm/DeviceManagementNode.h

00001 /*
00002  * Copyright (C) 2003-2007 Funambol, Inc
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 version 2 as
00006  * published by the Free Software Foundation.
00007  *
00008  * This program is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY, TITLE, NONINFRINGEMENT or FITNESS FOR A PARTICULAR
00011  * PURPOSE.  See the GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program; if not, write to the Free Software
00015  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00016  * 02111-1307  USA
00017  */
00018 #ifndef INCL_WIN_DEVICE_MANAGEMENT_NODE
00019 #define INCL_WIN_DEVICE_MANAGEMENT_NODE
00020 
00024 #include "base/fscapi.h"
00025 #include "base/util/ArrayElement.h"
00026 #include "spdm/ManagementNode.h"
00027 
00028 /*
00029  * Windows 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 Tue Oct 30 15:11:27 2007 for Funambol C++ Client Library by  doxygen 1.5.2